Skip to content

Commit

Permalink
Update download.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl authored Jul 17, 2024
1 parent 72a06d9 commit cce6183
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/generator/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export async function downloadDiscoveryDocs(
: 'json';
console.log(`sending request to ${options.discoveryUrl}`);
const res = await request({url: options.discoveryUrl, headers});
console.log(JSON.parse(res.data as string));
const apis = (JSON.parse(res.data as string)).items as gapi.Schema[];

Check failure on line 69 in src/generator/download.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `(JSON.parse(res.data·as·string)` with `JSON.parse(res.data·as·string`
const indexPath = path.join(options.downloadPath, 'index.json');
gfs.writeFile(indexPath, JSON.parse(res.data as string));
Expand Down

0 comments on commit cce6183

Please sign in to comment.