Skip to content

Commit

Permalink
Bump golangci-lint + fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <[email protected]>
  • Loading branch information
votdev authored and bk201 committed Mar 27, 2024
1 parent 143cfaf commit a754baf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN zypper -n rm container-suseconnect && \
zypper -n install git curl docker gzip tar wget awk

## install golangci
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.2
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.57.1
## install controller-gen
RUN go install sigs.k8s.io/controller-tools/cmd/[email protected]

Expand Down
2 changes: 1 addition & 1 deletion cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func main() {

app := cli.NewApp()
app.Flags = flags
app.Action = func(c *cli.Context) error {
app.Action = func(_ *cli.Context) error {
setLogLevel(logLevel)
err := runWebhookServer(ctx, cfg, &options)
return err
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func main() {
},
}

app.Action = func(c *cli.Context) error {
app.Action = func(_ *cli.Context) error {
initProfiling(&opt)
initLogs(&opt)
return run(&opt)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ksmtuned/ksmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (k *ksmd) toggleMergeAcrossNodes(ctx context.Context, toggle uint) (err err
}

ctxCancel, cancel := context.WithCancel(ctx)
wait.UntilWithContext(ctxCancel, func(ctx context.Context) {
wait.UntilWithContext(ctxCancel, func(_ context.Context) {
var s *ksmdStatus
s, err = k.readKsmdStatus()
if err != nil || s.shared+s.sharing+s.unshared < 1 {
Expand Down

0 comments on commit a754baf

Please sign in to comment.