Skip to content

Commit

Permalink
refactor(core): simplify source file retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 16, 2024
1 parent 7ea4a09 commit 3ceb165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function createLinter(
: {
...ctx,
languageService: syntaxOnlyLanguageService!,
sourceFile: (syntaxOnlyLanguageService as any).getNonBoundSourceFile(fileName),
sourceFile: getNonBoundSourceFile(fileName),
reportError,
reportWarning,
reportSuggestion,
Expand Down

0 comments on commit 3ceb165

Please sign in to comment.