Skip to content

Commit

Permalink
oneliner err check in displayListServers
Browse files Browse the repository at this point in the history
  • Loading branch information
enrichman committed Apr 9, 2024
1 parent 05fc2fa commit 5d03f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ func getSelectedServer(ctx *cli.Context, cfg *config.Config) (string, error) {
// prompt the user to select one.
func serverFromInput(ctx *cli.Context, cf *config.Config) (string, error) {
servers := getServers(cf)
err := displayListServers(ctx, servers)
if err != nil {

if err := displayListServers(ctx, servers); err != nil {
return "", err
}

Expand Down

0 comments on commit 5d03f2a

Please sign in to comment.