Skip to content

Commit 6fecca9

Browse files
committed
How about return something
1 parent 1767157 commit 6fecca9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/storeUtils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ function getGrammarLocation(grammar) {
4242
* @param {string} themeNameOrId
4343
* @param {object} themeCache
4444
* @param {string} markdownFilePath
45+
* @returns {Promise<string>}
4546
*/
4647
async function ensureThemeLocation(themeNameOrId, themeCache, markdownFilePath) {
4748
const themes = { ...themeManifest, ...themeCache };
@@ -52,6 +53,7 @@ async function ensureThemeLocation(themeNameOrId, themeCache, markdownFilePath)
5253
if (!(await exists(themePath))) {
5354
throw new Error(`Theme manifest lists '${themeNameOrId}' at '${themePath}, but no such file exists.'`);
5455
}
56+
return themePath;
5557
}
5658
}
5759

@@ -61,6 +63,7 @@ async function ensureThemeLocation(themeNameOrId, themeCache, markdownFilePath)
6163
`Theme manifest does not contain theme '${themeNameOrId}', and no theme file exists at '${locallyResolved}'.`
6264
);
6365
}
66+
return locallyResolved;
6467
}
6568

6669
const highestBuiltinLanguageId = Object.keys(grammarManifest).reduce(

0 commit comments

Comments
 (0)