chore: apply some missed code review nits from 29256 (#29289)

Addresses follow-ups from #29256
This commit is contained in:
Cian Johnston
2026-09-14 15:43:16 +01:00
committed by GitHub
parent 3857bc5f98
commit 1f610fa20d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func (r *RootCmd) updateUserEmail() *serpent.Command {
_, _ = fmt.Fprintf(inv.Stdout,
"This will update the email address for the account currently using %q to %q.\n"+
"All Coder sessions and API tokens for that user will be revoked.\n"+
"If the user logs in with an external identity provider, it may overwrite the email when the user next signs in.\n",
"If the user logs in with an external identity provider, it may overwrite the new email when the user next signs in.\n",
oldEmail, newEmail,
)
+1 -1
View File
@@ -976,7 +976,7 @@ func (api *API) putUserEmailExperimental(rw http.ResponseWriter, r *http.Request
UpdatedAt: dbtime.Now(),
})
if err != nil {
return err
return xerrors.Errorf("update user email: %w", err)
}
//nolint:gocritic // This break-glass operation must revoke all API keys