diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-02-22 11:39:31 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-02-22 11:39:31 +0300 |
commit | a2370e0f6665ae6c056623ed5977588f243ae68a (patch) | |
tree | 62847b56560fb4e9901192daf38adfd6c299c652 | |
parent | c1cabced28d02d667a37122860adde10068d28e2 (diff) |
log: Fix formatting via gofumpt
Fix formatting in the log package, which is currently not clean based on
what gofumpt says.
-rw-r--r-- | internal/log/log.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/internal/log/log.go b/internal/log/log.go index 42cb2bd94..351e20b42 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -120,9 +120,8 @@ func DeciderOption() grpcmwlogrus.Option { } func methodNameMatcherFromEnv() func(string) bool { - if pattern := - env.GetString("GITALY_LOG_REQUEST_METHOD_ALLOW_PATTERN", - defaultLogRequestMethodAllowPattern); pattern != "" { + if pattern := env.GetString("GITALY_LOG_REQUEST_METHOD_ALLOW_PATTERN", + defaultLogRequestMethodAllowPattern); pattern != "" { methodRegex := regexp.MustCompile(pattern) return func(fullMethodName string) bool { @@ -130,9 +129,8 @@ func methodNameMatcherFromEnv() func(string) bool { } } - if pattern := - env.GetString("GITALY_LOG_REQUEST_METHOD_DENY_PATTERN", - defaultLogRequestMethodDenyPattern); pattern != "" { + if pattern := env.GetString("GITALY_LOG_REQUEST_METHOD_DENY_PATTERN", + defaultLogRequestMethodDenyPattern); pattern != "" { methodRegex := regexp.MustCompile(pattern) return func(fullMethodName string) bool { |