Fix nil NoMethodError when converting a duplicated grammar

We were sticking a nil value into the grammars Array when we encountered
a duplicate scope. Now we strip out nils before returning the Array.
This commit is contained in:
Adam Roben
2015-05-19 09:24:19 -04:00
parent 9240f30f28
commit 9bdf890fd8

View File

@@ -195,7 +195,7 @@ def load_grammars(tmp_dir, source, all_scopes)
end
all_scopes[scope] = p.url
grammar
end
end.compact
end
def install_grammars(grammars, path)