 
 elasticsearch = require('elasticsearch')
 esConfig = require('./config.js').elasticsearch
-client = new elasticsearch.Client {host: esConfig.host, log: 'trace'}
+client = new elasticsearch.Client {
+  host: esConfig.host,
+  log: 'trace'
+}
 
 # number of missing files
 missing = 0

        index: 'blockbuilder'
        type: 'blocks'
        id: gist.id
      , (err, response) ->
        if err
          # post to elastic search, we don't have it indexed yet
          client.index

        type: 'blocks'
        id: gist.id
        body: es
      , (err) ->
        console.log "indexed", gist.id
        return gistCb(err)

deleteGist = (gistId, gistCb) ->
  client.delete
