Skip to content

Commit

Permalink
Use the right func to verify
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jun 26, 2021
1 parent 6639143 commit 4d2fbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const highlighterCache = new WeakMap<UserConfigSettings, Highlighter[]>()
/** Sets up the highlighters, and cache's for recalls */
export const highlightersFromSettings = async (settings: UserConfigSettings) => {
const themes = settings.themes || (settings.theme ? [settings.theme] : ["light-plus"])
if (highlighterCache.get(settings)) return highlighterCache.get(settings)!
if (highlighterCache.has(settings)) return highlighterCache.get(settings)!

const highlighters = await Promise.all(
themes.map(async theme => {
Expand Down

0 comments on commit 4d2fbce

Please sign in to comment.