Skip to content

Commit

Permalink
Merge pull request #128 from jannis-baum/issue/127-fix-early-return-o…
Browse files Browse the repository at this point in the history
…f-default-config

Fix early return of default config
  • Loading branch information
jannis-baum authored Jul 26, 2024
2 parents 7549f3a + b253cca commit 0e0c4da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const getConfig = (): Config => {
} catch {}
}

if (config === undefined) return defaultConfig;
// revert to default config if no config found
config = config ?? defaultConfig;

// get styles, scripts and ignore files
config.styles = getFileContents(config.styles);
Expand Down

0 comments on commit 0e0c4da

Please sign in to comment.