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"
|
secure = "#{process.env.HOME}/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist"
|
||||||
insecure = "#{process.env.HOME}/Library/Preferences/com.apple.LaunchServices.plist"
|
insecure = "#{process.env.HOME}/Library/Preferences/com.apple.LaunchServices.plist"
|
||||||
|
|
||||||
fs.exists secure, (exists) =>
|
fs.exists secure, (exists) ->
|
||||||
if exists
|
if exists
|
||||||
callback(secure)
|
callback(secure)
|
||||||
else
|
else
|
||||||
callback(insecure)
|
callback(insecure)
|
||||||
|
|
||||||
readDefaults: (callback) ->
|
readDefaults: (callback) ->
|
||||||
@getLaunchServicesPlistPath (plistPath) =>
|
@getLaunchServicesPlistPath (plistPath) ->
|
||||||
tmpPath = "#{plistPath}.#{Math.random()}"
|
tmpPath = "#{plistPath}.#{Math.random()}"
|
||||||
exec "plutil -convert json \"#{plistPath}\" -o \"#{tmpPath}\"", (err, stdout, stderr) ->
|
exec "plutil -convert json \"#{plistPath}\" -o \"#{tmpPath}\"", (err, stdout, stderr) ->
|
||||||
return callback(err) if callback and err
|
return callback(err) if callback and err
|
||||||
|
|
|
@ -10,7 +10,7 @@ ChildProcess =
|
||||||
execHitory.push(arguments)
|
execHitory.push(arguments)
|
||||||
callback(null, '', null)
|
callback(null, '', null)
|
||||||
|
|
||||||
fs =
|
fs =
|
||||||
exists: (path, callback) ->
|
exists: (path, callback) ->
|
||||||
callback(true)
|
callback(true)
|
||||||
readFile: (path, callback) ->
|
readFile: (path, callback) ->
|
||||||
|
|
Loading…
Reference in a new issue