Skip to content

Commit

Permalink
linter update
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorVin committed Nov 7, 2024
1 parent 18af2c0 commit dae6c39
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ linters:
# additional linters
- bodyclose
- gocritic
- goerr113
- err113
- goimports
- revive
- misspell
Expand All @@ -77,7 +77,7 @@ linters:
- nilerr
- reassign
- whitespace
- exportloopref
- copyloopvar

enable-all: false
disable-all: true
Expand Down
1 change: 0 additions & 1 deletion cmd/get/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ func printComponent(components []*rt.Component, slug string) {
got := []*rt.Component{}

for _, c := range components {
c := c
if strings.EqualFold(slug, c.Name) {
got = append(got, c)
}
Expand Down
1 change: 0 additions & 1 deletion cmd/list/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ var cmdListServer = &cobra.Command{

rtServers := make([]*rt.Server, 0, len(servers))
for _, s := range servers {
s := s
rtServers = append(rtServers, rfleetdb.ConvertServer(&s))
}

Expand Down

0 comments on commit dae6c39

Please sign in to comment.