Skip to content

Commit

Permalink
Fixed linters
Browse files Browse the repository at this point in the history
  • Loading branch information
mymmrac committed Jun 2, 2024
1 parent 08dfeed commit d13f801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,8 @@ linters:
- wsl # Whitespace Linter - Forces you to use empty lines!

# Disabled because deprecated
- deadcode # Finds unused code
- exhaustivestruct # Checks if all struct's fields are initialized
- execinquery # Execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds
- golint # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes
- gomnd # An analyzer to detect magic numbers
- ifshort # Checks that your code uses short syntax for if-statements whenever possible
- interfacer # Linter that suggests narrower interface types
- maligned # Tool to detect Go structs that would take less memory if their fields were sorted
- nosnakecase # nosnakecase is a linter that detects snake case of variable naming and function name
- scopelint # Scopelint checks for unpinned variables in go programs
- structcheck # Finds unused struct fields
- varcheck # Finds unused global variables and constants

# To see a list of enabled/disabled by current configuration linters:
# golangci-lint linters
Expand Down
4 changes: 2 additions & 2 deletions telegoapi/caller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ func (h *httpServer) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
case errJSONPath:
resp.WriteHeader(http.StatusOK)
_, err := resp.Write([]byte("abc"))
require.NoError(h.t, err)
assert.NoError(h.t, err)
default:
resp.WriteHeader(http.StatusOK)
_, err := resp.Write([]byte("{\"ok\": true}"))
require.NoError(h.t, err)
assert.NoError(h.t, err)
}
}

Expand Down

0 comments on commit d13f801

Please sign in to comment.