mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-28 18:14:08 +08:00
fix(lint): Resolves minor linter issues
This commit is contained in:
parent
feacf8948b
commit
e9cda3ee7e
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -10,7 +10,7 @@ ChildProcess =
|
|||
execHitory.push(arguments)
|
||||
callback(null, '', null)
|
||||
|
||||
fs =
|
||||
fs =
|
||||
exists: (path, callback) ->
|
||||
callback(true)
|
||||
readFile: (path, callback) ->
|
||||
|
|
Loading…
Reference in a new issue