Skip to content

Commit de61973

Browse files
author
Caleb Barnes
committed
remove commented unused call to get site
1 parent 351974c commit de61973

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/commands/database/database.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,6 @@ const init = async (_options: OptionValues, command: BaseCommand) => {
5858
throw new Error(`Please login with netlify login before running this command`)
5959
}
6060

61-
// let site: Awaited<ReturnType<typeof command.netlify.api.getSite>>
62-
// try {
63-
// site = await command.netlify.api.getSite({
64-
// siteId: command.siteId,
65-
// // @ts-expect-error -- feature_flags is not in the types
66-
// feature_flags: 'cli',
67-
// })
68-
// } catch (e) {
69-
// throw new Error(`Error getting site, make sure you are logged in with netlify login`, {
70-
// cause: e,
71-
// })
72-
// }
7361
if (!siteInfo.account_id || !siteInfo.name) {
7462
throw new Error(`Error getting site, make sure you are logged in with netlify login`)
7563
}

0 commit comments

Comments
 (0)