Skip to content

Commit

Permalink
cli: Removes additional output if no args are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored and arekkas committed May 28, 2018
1 parent d84be3b commit 703e124
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/client/handler_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ func formatResponse(response interface{}) string {
}

func fatalf(message string, args ...interface{}) {
fmt.Printf(message+"\n", args)
if len(args) > 0 {
fmt.Printf(message+"\n", args)
} else {
fmt.Println(message)
}
os.Exit(1)
}

0 comments on commit 703e124

Please sign in to comment.