Skip to content

Commit a05f476

Browse files
committed
Cleanup
1 parent f1c3ed0 commit a05f476

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

coderd/users.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ func logout(rw http.ResponseWriter, r *http.Request) {
210210
}
211211

212212
http.SetCookie(rw, cookie)
213-
214213
render.Status(r, http.StatusOK)
215214
}
216215

site/components/Navbar/index.test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { render, MockUser } from "../../test_helpers"
55
import { Navbar } from "./index"
66

77
describe("Navbar", () => {
8-
const noop = () => { return; }
8+
const noop = () => {
9+
return
10+
}
911
it("renders content", async () => {
1012
// When
1113
render(<Navbar onSignOut={noop} />)
@@ -18,7 +20,7 @@ describe("Navbar", () => {
1820
// Given
1921
const mockUser = {
2022
...MockUser,
21-
username: "bryan"
23+
username: "bryan",
2224
}
2325

2426
// When

site/test_helpers/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ export const MockUser: User = {
55
username: "TestUser",
66
email: "test@coder.com",
77
created_at: "",
8-
}
8+
}

0 commit comments

Comments
 (0)