Skip to content

Commit

Permalink
🪲 tests: Add initial value to var declaration (#388)
Browse files Browse the repository at this point in the history
Fixes an issue caught by golangci-lint, and causes the CI pipeline to
pass successfully again.

Signed-off-by: Justin W. Flory (he/him) <git@jwf.io>
  • Loading branch information
jwflory committed Nov 22, 2021
1 parent 4a7f31f commit 6e85a8c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions internal/handlers/irc/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ func TestJoinHandler_Off(t *testing.T) {
}

func TestJoinHandlerWithAllowList_Off(t *testing.T) {
var name string
name = "TEST_NAME"
var name string = "TEST_NAME"
ctrl := gomock.NewController(t)

defer ctrl.Finish()
Expand Down Expand Up @@ -255,8 +254,7 @@ func TestPartHandler_Off(t *testing.T) {
}

func TestPartHandlerWithAllowList_Off(t *testing.T) {
var name string
name = "TEST_NAME"
var name string = "TEST_NAME"

ctrl := gomock.NewController(t)

Expand Down Expand Up @@ -406,8 +404,7 @@ func TestQuitHandler_Off(t *testing.T) {
}

func TestQuitHandlerWithAllowList_Off(t *testing.T) {
var name string
name = "TEST_NAME"
var name string = "TEST_NAME"

ctrl := gomock.NewController(t)

Expand Down

0 comments on commit 6e85a8c

Please sign in to comment.