Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Oct 5, 2024
1 parent 348cc07 commit 38cd3ec
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/graphqlsp/src/graphql/getSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,9 @@ async function saveTadaIntrospection(
});

let output = tadaOutputLocation;
console.log('OUTPUT');
if (await statFile(output, stat => stat.isDirectory())) {
output = path.join(output, 'introspection.d.ts');
} else if (!(await statFile(output, p => !!p))) {
console.log('MAKING DIRECTORY', output);
await fs.mkdir(path.dirname(output), { recursive: true });
if (await statFile(output, stat => stat.isDirectory())) {
output = path.join(output, 'introspection.d.ts');
Expand Down

0 comments on commit 38cd3ec

Please sign in to comment.