mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Return empty promise when already loaded
This commit is contained in:
@@ -191,7 +191,7 @@ class Package
|
||||
@grammarsLoaded = true
|
||||
|
||||
loadGrammars: ->
|
||||
return if @grammarsLoaded
|
||||
return Q() if @grammarsLoaded
|
||||
|
||||
loadGrammar = (grammarPath, callback) =>
|
||||
atom.syntax.readGrammar grammarPath, (error, grammar) =>
|
||||
|
||||
Reference in New Issue
Block a user