Commit 9f4ec663 authored by Leo Iannacone's avatar Leo Iannacone

use fat arrows where needed - fix indentation

parent a4ab5fec
...@@ -66,13 +66,13 @@ class Debomatic ...@@ -66,13 +66,13 @@ class Debomatic
@status[key] = data @status[key] = data
@sockets.emit e.status_update, data @sockets.emit e.status_update, data
watcher.on "error", (msg) -> watcher.on "error", (msg) =>
@sockets.emit config.events.error, msg @sockets.emit config.events.error, msg
start: -> start: ->
# if json file does not still exist wait for its creation # if json file does not still exist wait for its creation
if not fs.existsSync(config.debomatic.jsonfile) if not fs.existsSync(config.debomatic.jsonfile)
fs.watchFile config.debomatic.jsonfile, (curr, prev) -> fs.watchFile config.debomatic.jsonfile, (curr, prev) =>
if curr.ino isnt 0 if curr.ino isnt 0
fs.unwatchFile(config.debomatic.jsonfile) fs.unwatchFile(config.debomatic.jsonfile)
@watch_status() @watch_status()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment