Skip to content

Commit 68b0e31

Browse files
authored
chore: enable predeclared and govet linters (#297)
* chore: enable `predeclared` and `govet` linters * chore: add a `return` to make `staticcheck` linter
1 parent bb95ef2 commit 68b0e31

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.golangci.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ linters:
2323
- tenv # Deprecated
2424
- varnamelen # maybe later
2525
- wsl # disagree with, for now
26-
- predeclared
27-
- govet
2826

2927
linters-settings:
3028
depguard:

pkg/database/api_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ func TestNewAPIDB_Valid(t *testing.T) {
7979

8080
if db == nil {
8181
t.Fatalf("NewAPIDB() db unexpectedly nil")
82+
83+
// this is required currently to make the staticcheck linter
84+
return
8285
}
8386

8487
if !reflect.DeepEqual(db.BaseURL, u) {

0 commit comments

Comments
 (0)