From 25e0c48d6d85d34d44f1e5fc418392d07b3d1cfe Mon Sep 17 00:00:00 2001 From: tjpcc Date: Fri, 8 Sep 2023 14:54:55 -0600 Subject: linter fixes --- config.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'config.go') diff --git a/config.go b/config.go index f89ca6a..39d59bd 100644 --- a/config.go +++ b/config.go @@ -57,10 +57,11 @@ func dropPrivileges() (bool, error) { func serverContext() (context.Context, logging.Logger, logging.Logger, logging.Logger, logging.Logger) { debug, info, warn, err := logging.DefaultLoggers() ctx := signals(context.Background()) - ctx = context.WithValue(ctx, "debuglog", debug) - ctx = context.WithValue(ctx, "infolog", info) - ctx = context.WithValue(ctx, "warnlog", warn) - ctx = context.WithValue(ctx, "errorlog", err) + ctx = context.WithValue(ctx, "debuglog", debug) //nolint:staticcheck + ctx = context.WithValue(ctx, "infolog", info) //nolint:staticcheck + ctx = context.WithValue(ctx, "warnlog", warn) //nolint:staticcheck + ctx = context.WithValue(ctx, "errorlog", err) //nolint:staticcheck + return ctx, debug, info, warn, err } -- cgit v1.2.3