From 66ad124ddd777f658637b9e2a7728b6f74921998 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Thu, 16 Mar 2023 19:48:12 +0100 Subject: [PATCH] any can be used instead of interface{} --- cmd/backup/script.go | 2 +- internal/storage/storage.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/backup/script.go b/cmd/backup/script.go index 6d7a2a8..729650e 100644 --- a/cmd/backup/script.go +++ b/cmd/backup/script.go @@ -110,7 +110,7 @@ func newScript() (*script, error) { 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 { case storage.LogLevelWarning: s.logger.Warnf("["+context+"] "+msg, params...) diff --git a/internal/storage/storage.go b/internal/storage/storage.go index f0b4493..0385a9a 100644 --- a/internal/storage/storage.go +++ b/internal/storage/storage.go @@ -29,7 +29,7 @@ const ( 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 type PruneStats struct {