Skip to content

Commit

Permalink
Remove unused parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosalyntan committed Sep 20, 2024
1 parent 4a3bff6 commit 27300d0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/init/features/dataconnect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function askQuestions(setup: Setup, config: Config): Promise<RequiredInfo>
}

if (info.cloudSqlDatabase === "") {
info = await promptForDatabase(setup, config, info);
info = await promptForDatabase(setup, info);
}

// TODO: Remove this in favor of a better way of setting local connection string.
Expand Down Expand Up @@ -382,11 +382,7 @@ async function locationChoices(setup: Setup) {
}
}

async function promptForDatabase(
setup: Setup,
config: Config,
info: RequiredInfo,
): Promise<RequiredInfo> {
async function promptForDatabase(setup: Setup, info: RequiredInfo): Promise<RequiredInfo> {
if (!info.isNewInstance && setup.projectId) {
try {
const dbs = await cloudsql.listDatabases(setup.projectId, info.cloudSqlInstanceId);
Expand Down

0 comments on commit 27300d0

Please sign in to comment.