From e9cda3ee7e18eb9017e236c2e39a9de3082bd3da Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 9 Feb 2015 16:42:53 -0800 Subject: [PATCH] fix(lint): Resolves minor linter issues --- .../notification-mailto/lib/launch-services.coffee | 4 ++-- .../notification-mailto/spec/launch-services-spec.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal_packages/notification-mailto/lib/launch-services.coffee b/internal_packages/notification-mailto/lib/launch-services.coffee index 80640c7ca..ddc0674a1 100644 --- a/internal_packages/notification-mailto/lib/launch-services.coffee +++ b/internal_packages/notification-mailto/lib/launch-services.coffee @@ -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 diff --git a/internal_packages/notification-mailto/spec/launch-services-spec.coffee b/internal_packages/notification-mailto/spec/launch-services-spec.coffee index 3dae488b2..b35f034e8 100644 --- a/internal_packages/notification-mailto/spec/launch-services-spec.coffee +++ b/internal_packages/notification-mailto/spec/launch-services-spec.coffee @@ -10,7 +10,7 @@ ChildProcess = execHitory.push(arguments) callback(null, '', null) -fs = +fs = exists: (path, callback) -> callback(true) readFile: (path, callback) ->