fix(lint): Resolves minor linter issues

This commit is contained in:
Ben Gotow 2015-02-09 16:42:53 -08:00
parent feacf8948b
commit e9cda3ee7e
2 changed files with 3 additions and 3 deletions

View file

@ -19,14 +19,14 @@ class LaunchServices
secure = "#{process.env.HOME}/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist"
insecure = "#{process.env.HOME}/Library/Preferences/com.apple.LaunchServices.plist"
fs.exists secure, (exists) =>
fs.exists secure, (exists) ->
if exists
callback(secure)
else
callback(insecure)
readDefaults: (callback) ->
@getLaunchServicesPlistPath (plistPath) =>
@getLaunchServicesPlistPath (plistPath) ->
tmpPath = "#{plistPath}.#{Math.random()}"
exec "plutil -convert json \"#{plistPath}\" -o \"#{tmpPath}\"", (err, stdout, stderr) ->
return callback(err) if callback and err

View file

@ -10,7 +10,7 @@ ChildProcess =
execHitory.push(arguments)
callback(null, '', null)
fs =
fs =
exists: (path, callback) ->
callback(true)
readFile: (path, callback) ->