Commit f45cb918 authored by Michael Droettboom's avatar Michael Droettboom

Do nothing if no packages to load

parent e24c610a
...@@ -138,6 +138,7 @@ var languagePluginLoader = new Promise((resolve, reject) => { ...@@ -138,6 +138,7 @@ var languagePluginLoader = new Promise((resolve, reject) => {
let promise = new Promise((resolve, reject) => { let promise = new Promise((resolve, reject) => {
if (Object.keys(toLoad).length === 0) { if (Object.keys(toLoad).length === 0) {
resolve('No new packages to load'); resolve('No new packages to load');
return;
} }
const packageList = Array.from(Object.keys(toLoad)).join(', '); const packageList = Array.from(Object.keys(toLoad)).join(', ');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment