Skip to content

Commit

Permalink
fix early return
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jun 2, 2023
1 parent 951f987 commit 4591daa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/graphqlsp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ function create(info: ts.server.PluginCreateInfo) {
const originalDiagnostics =
info.languageService.getSemanticDiagnostics(filename);

if (originalDiagnostics.length) {
return originalDiagnostics;
}

const graphQLDiagnostics = getGraphQLDiagnostics(
originalDiagnostics.length > 0,
filename,
Expand Down

0 comments on commit 4591daa

Please sign in to comment.