Skip to content

Commit

Permalink
Delete else block
Browse files Browse the repository at this point in the history
  • Loading branch information
srknzl committed Oct 30, 2023
1 parent d5200a5 commit ecae8ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions base/commands/migration/migration_stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,7 @@ func WaitForMigrationToBeInProgress(ctx context.Context, ci *hazelcast.ClientInt
errs, err := fetchMigrationErrors(ctx, ci, migrationID)
if err != nil {
return fmt.Errorf("migration failed and dmt cannot fetch migration errors: %w", err)
} else {
return errors.New(errs)
}
return errors.New(errs)
}
if Status(status) == StatusInProgress {
return nil
Expand Down

0 comments on commit ecae8ab

Please sign in to comment.