Skip to content

Commit

Permalink
s3-gw: fix revive linter warning
Browse files Browse the repository at this point in the history
cmd/s3-gw/app_settings.go:411:37  revive  unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _

Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Jun 19, 2024
1 parent bbde4d9 commit 7d727d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/s3-gw/app_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ func newLogger(v *viper.Viper) *Logger {
if term.IsTerminal(int(os.Stdout.Fd())) {
c.EncoderConfig.EncodeTime = zapcore.ISO8601TimeEncoder
} else {
c.EncoderConfig.EncodeTime = func(t time.Time, encoder zapcore.PrimitiveArrayEncoder) {}
c.EncoderConfig.EncodeTime = func(_ time.Time, _ zapcore.PrimitiveArrayEncoder) {}
}

l, err := c.Build(
Expand Down

0 comments on commit 7d727d4

Please sign in to comment.