diff --git a/config/config_test.go b/config/config_test.go index e26ae80..153b068 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -44,7 +44,7 @@ func TestSampleConfigsAreParsedWithoutErrors(t *testing.T) { } // template must be a template/text template with a single '{{ . }}' as placeholder for val -//nolint[:deadcode,unused] +//nolint:deadcode,unused func testValidConfigTemplate(t *testing.T, tmpl string, val string) *Config { tmp, err := template.New("master").Parse(tmpl) if err != nil { diff --git a/replication/driver/replication_driver_debug.go b/replication/driver/replication_driver_debug.go index 536379a..4bdd40b 100644 --- a/replication/driver/replication_driver_debug.go +++ b/replication/driver/replication_driver_debug.go @@ -13,7 +13,7 @@ func init() { } } -//nolint[:deadcode,unused] +//nolint:deadcode,unused func debug(format string, args ...interface{}) { if debugEnabled { fmt.Fprintf(os.Stderr, "repl: driver: %s\n", fmt.Sprintf(format, args...)) @@ -22,7 +22,7 @@ func debug(format string, args ...interface{}) { type debugFunc func(format string, args ...interface{}) -//nolint[:deadcode,unused] +//nolint:deadcode,unused func debugPrefix(prefixFormat string, prefixFormatArgs ...interface{}) debugFunc { prefix := fmt.Sprintf(prefixFormat, prefixFormatArgs...) return func(format string, args ...interface{}) { diff --git a/rpc/dataconn/dataconn_debug.go b/rpc/dataconn/dataconn_debug.go index 205421b..d9ff26f 100644 --- a/rpc/dataconn/dataconn_debug.go +++ b/rpc/dataconn/dataconn_debug.go @@ -14,7 +14,7 @@ func init() { } } -//nolint[:deadcode,unused] +//nolint:deadcode,unused func debug(format string, args ...interface{}) { if debugEnabled { fmt.Fprintf(os.Stderr, "rpc/dataconn: %s\n", fmt.Sprintf(format, args...)) diff --git a/rpc/dataconn/heartbeatconn/heartbeatconn_debug.go b/rpc/dataconn/heartbeatconn/heartbeatconn_debug.go index caa8884..6e7e71b 100644 --- a/rpc/dataconn/heartbeatconn/heartbeatconn_debug.go +++ b/rpc/dataconn/heartbeatconn/heartbeatconn_debug.go @@ -13,7 +13,7 @@ func init() { } } -//nolint[:deadcode,unused] +//nolint:deadcode,unused func debug(format string, args ...interface{}) { if debugEnabled { fmt.Fprintf(os.Stderr, "rpc/dataconn/heartbeatconn: %s\n", fmt.Sprintf(format, args...)) diff --git a/rpc/dataconn/stream/stream.go b/rpc/dataconn/stream/stream.go index ec2283c..9f7c6d2 100644 --- a/rpc/dataconn/stream/stream.go +++ b/rpc/dataconn/stream/stream.go @@ -29,7 +29,7 @@ func WithLogger(ctx context.Context, log Logger) context.Context { return context.WithValue(ctx, contextKeyLogger, log) } -//nolint[:deadcode,unused] +//nolint:deadcode,unused func getLog(ctx context.Context) Logger { log, ok := ctx.Value(contextKeyLogger).(Logger) if !ok { diff --git a/rpc/dataconn/stream/stream_debug.go b/rpc/dataconn/stream/stream_debug.go index e86f41a..564e8cb 100644 --- a/rpc/dataconn/stream/stream_debug.go +++ b/rpc/dataconn/stream/stream_debug.go @@ -13,7 +13,7 @@ func init() { } } -//nolint[:deadcode,unused] +//nolint:deadcode,unused func debug(format string, args ...interface{}) { if debugEnabled { fmt.Fprintf(os.Stderr, "rpc/dataconn/stream: %s\n", fmt.Sprintf(format, args...)) diff --git a/rpc/rpc_debug.go b/rpc/rpc_debug.go index 5fb3845..92f4d1d 100644 --- a/rpc/rpc_debug.go +++ b/rpc/rpc_debug.go @@ -14,7 +14,7 @@ func init() { } } -//nolint[:deadcode,unused] +//nolint:deadcode,unused func debug(format string, args ...interface{}) { if debugEnabled { fmt.Fprintf(os.Stderr, "rpc: %s\n", fmt.Sprintf(format, args...)) diff --git a/zfs/zfs_debug.go b/zfs/zfs_debug.go index 575bb31..cdc65d1 100644 --- a/zfs/zfs_debug.go +++ b/zfs/zfs_debug.go @@ -13,7 +13,7 @@ func init() { } } -//nolint[:deadcode,unused] +//nolint:deadcode,unused func debug(format string, args ...interface{}) { if debugEnabled { fmt.Fprintf(os.Stderr, "zfs: %s\n", fmt.Sprintf(format, args...))