Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ciprian Hacman <ciprian@hakman.dev>
  • Loading branch information
Mia-Cross and hakman authored Nov 24, 2022
1 parent 6c79985 commit ea55747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kops/create_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,8 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
merr = multierr.Append(merr, err)
}
}
if err != nil && len(c.SSHPublicKeys) == 0 {
return fmt.Errorf("error reading SSH key file %q: %v", sshPublicKeyPaths, merr)
if merr != nil && len(c.SSHPublicKeys) == 0 {
return fmt.Errorf("error reading SSH public key files %q: %v", sshPublicKeyPaths, merr)
}
}
}
Expand Down

0 comments on commit ea55747

Please sign in to comment.