Skip to content

Commit

Permalink
Enable unused linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dangra committed Aug 11, 2022
1 parent 6095cd6 commit 7a2c91f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ linters:
# - ineffassign
# - staticcheck
- unconvert
# - unused
- unused
# - varcheck
fast: true

Expand Down
10 changes: 0 additions & 10 deletions agent/server/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,16 +552,6 @@ func (s *session) exactArgs(count int, args []string, err error) bool {
return true
}

func (s *session) minMaxArgs(min, max int, args []string, err error) bool {
if len(args) < min || len(args) > max {
s.error(err)

return false
}

return true
}

func (s *session) marshal(v interface{}) (ok bool) {
var sb strings.Builder

Expand Down

0 comments on commit 7a2c91f

Please sign in to comment.