Skip to content

Commit ba5f8c0

Browse files
authored
(fix) ignore could be undefined
1 parent b53c11b commit ba5f8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte-check/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class DiagnosticsWatcher {
148148
}
149149

150150
const svelteCheck = new SvelteCheck(workspaceUri.fsPath);
151-
const filePathsToIgnore = myArgs['ignore'].split(' ') || [];
151+
const filePathsToIgnore = myArgs['ignore']?.split(' ') || [];
152152

153153
if (myArgs['watch']) {
154154
new DiagnosticsWatcher(workspaceUri, svelteCheck, writer, filePathsToIgnore);

0 commit comments

Comments
 (0)