diff --git a/cmd/server_test.go b/cmd/server_test.go index a56bbd2db3..6921906ae0 100644 --- a/cmd/server_test.go +++ b/cmd/server_test.go @@ -294,9 +294,9 @@ func getDocumentedFlags(t *testing.T) []string { ret = append(ret, flag) } - if err := scanner.Err(); err != nil { - Ok(t, err) - } + err = scanner.Err() + Ok(t, err) + return ret }