refactor(gemini-cli): simplify redundant if/else in project ID assignment
Both branches assign finalProjectID = responseProjectID, so move the assignment outside the conditional and keep only the logging inside.
This commit is contained in:
@@ -335,10 +335,8 @@ func performGeminiCLISetup(ctx context.Context, httpClient *http.Client, storage
|
||||
if explicitProject && !strings.EqualFold(responseProjectID, projectID) {
|
||||
log.Infof("Gemini onboarding: requested project %s maps to backend project %s", projectID, responseProjectID)
|
||||
log.Infof("Using backend project ID: %s", responseProjectID)
|
||||
finalProjectID = responseProjectID
|
||||
} else {
|
||||
finalProjectID = responseProjectID
|
||||
}
|
||||
finalProjectID = responseProjectID
|
||||
}
|
||||
|
||||
storage.ProjectID = strings.TrimSpace(finalProjectID)
|
||||
|
||||
Reference in New Issue
Block a user