Skip to content

Commit 54d8468

Browse files
committed
fixup!: use require.Nil correctly
1 parent 0b24f60 commit 54d8468

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cli/cliarg/cliarg_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ func TestCliarg(t *testing.T) {
1717
fun := cliarg.ExactNamedArg(namedArg, customErrorMessage)
1818
args := []string{"myWorkspace"}
1919
cmd, _ := clitest.New(t, "delete", "myWorkspace")
20-
var want *string
2120
got := fun(cmd, args)
22-
require.Nil(t, want, got)
21+
require.Nil(t, got)
2322
})
2423
t.Run("Custom error message", func(t *testing.T) {
2524
t.Parallel()

0 commit comments

Comments
 (0)