mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
💄 Use unless instead of if not
This commit is contained in:
@@ -19,7 +19,7 @@ class KeyBinding
|
||||
normalizedKeystroke.join(' ')
|
||||
|
||||
@getParser: ->
|
||||
if not KeyBinding.parser
|
||||
unless KeyBinding.parser?
|
||||
keystrokePattern = fs.readFileSync(require.resolve('./keystroke-pattern.pegjs'), 'utf8')
|
||||
KeyBinding.parser = PEG.buildParser(keystrokePattern)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user