We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96a5dc1 commit f735197Copy full SHA for f735197
pkg/commands/test.go
@@ -15,8 +15,7 @@ import (
15
func shouldBeAnUUID(actual interface{}, expected ...interface{}) string {
16
input := actual.(string)
17
input = strings.TrimSpace(input)
18
- uuid := anonuuid.IsUUID(input)
19
- if uuid == nil {
+ if err := anonuuid.IsUUID(input); err != nil {
20
return fmt.Sprintf("%q should be an UUID", actual)
21
}
22
return ""
0 commit comments