Skip to content

Commit f735197

Browse files
committed
Update test.go
1 parent 96a5dc1 commit f735197

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/commands/test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ import (
1515
func shouldBeAnUUID(actual interface{}, expected ...interface{}) string {
1616
input := actual.(string)
1717
input = strings.TrimSpace(input)
18-
uuid := anonuuid.IsUUID(input)
19-
if uuid == nil {
18+
if err := anonuuid.IsUUID(input); err != nil {
2019
return fmt.Sprintf("%q should be an UUID", actual)
2120
}
2221
return ""

0 commit comments

Comments
 (0)