Skip to content

Commit

Permalink
Rename lintSchema error variable to prevent shadowing. (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
iheanyi authored Aug 11, 2023
1 parent b32c878 commit 32f0996
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/branch/safe_migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ func EnableSafeMigrationsCmd(ch *cmdutil.Helper) *cobra.Command {
case ps.ErrNotFound:
return fmt.Errorf("branch %s does not exist in database %s", printer.BoldBlue(branch), printer.BoldBlue(db))
case ps.ErrRetry:
lintErrors, err := client.DatabaseBranches.LintSchema(ctx, &ps.LintSchemaRequest{
lintErrors, lintErr := client.DatabaseBranches.LintSchema(ctx, &ps.LintSchemaRequest{
Organization: ch.Config.Organization,
Database: db,
Branch: branch,
})
if err != nil {
return cmdutil.HandleError(err)
if lintErr != nil {
return cmdutil.HandleError(lintErr)
}

if len(lintErrors) > 0 {
Expand Down

0 comments on commit 32f0996

Please sign in to comment.