any can be used instead of interface{}

This commit is contained in:
Frederik Ring 2023-03-16 19:48:12 +01:00
parent aee802cb09
commit 66ad124ddd
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ func newScript() (*script, error) {
s.cli = cli s.cli = cli
} }
logFunc := func(logType storage.LogLevel, context string, msg string, params ...interface{}) { logFunc := func(logType storage.LogLevel, context string, msg string, params ...any) {
switch logType { switch logType {
case storage.LogLevelWarning: case storage.LogLevelWarning:
s.logger.Warnf("["+context+"] "+msg, params...) s.logger.Warnf("["+context+"] "+msg, params...)

View File

@ -29,7 +29,7 @@ const (
LogLevelError LogLevelError
) )
type Log func(logType LogLevel, context string, msg string, params ...interface{}) type Log func(logType LogLevel, context string, msg string, params ...any)
// PruneStats is a wrapper struct for returning stats after pruning // PruneStats is a wrapper struct for returning stats after pruning
type PruneStats struct { type PruneStats struct {