Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-02-22 11:39:31 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-02-22 11:39:31 +0300
commita2370e0f6665ae6c056623ed5977588f243ae68a (patch)
tree62847b56560fb4e9901192daf38adfd6c299c652
parentc1cabced28d02d667a37122860adde10068d28e2 (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.go10
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 {