diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2022-02-22 13:36:33 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2022-02-22 13:36:33 +0300 |
commit | 51cf676fc530f242eb893c7b630ef309de116e35 (patch) | |
tree | 62847b56560fb4e9901192daf38adfd6c299c652 | |
parent | c1cabced28d02d667a37122860adde10068d28e2 (diff) | |
parent | a2370e0f6665ae6c056623ed5977588f243ae68a (diff) |
Merge branch 'pks-log-fix-formatting' into 'master'
log: Fix formatting via gofumpt
See merge request gitlab-org/gitaly!4368
-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 { |