Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40f45a6

Browse files
committed
lint
1 parent 53152cd commit 40f45a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/users_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func TestPostLogout(t *testing.T) {
186186
require.Equal(t, httpmw.SessionTokenKey, cookies[0].Name, "Cookie should be the auth cookie")
187187
require.Equal(t, -1, cookies[0].MaxAge, "Cookie should be set to delete")
188188

189-
apiKey, err = client.GetAPIKey(ctx, admin.UserID.String(), keyID)
189+
_, err = client.GetAPIKey(ctx, admin.UserID.String(), keyID)
190190
var sdkErr = &codersdk.Error{}
191191
require.ErrorAs(t, err, &sdkErr)
192192
require.Equal(t, http.StatusUnauthorized, sdkErr.StatusCode(), "Expecting 401")

0 commit comments

Comments
 (0)