From 3c2e699e7e07751e948a9f8cf8b998a8f711d26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandor=20Sz=C3=BCcs?= Date: Fri, 5 Jan 2024 13:28:06 +0100 Subject: [PATCH] refactor: if-else drop else part refactor: sort import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sandor Szücs --- filters/diag/absorb.go | 3 +-- proxy/teebody.go | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/filters/diag/absorb.go b/filters/diag/absorb.go index 0d53601236..f48b891ca8 100644 --- a/filters/diag/absorb.go +++ b/filters/diag/absorb.go @@ -68,9 +68,8 @@ func NewAbsorbSilent() filters.Spec { func (a *absorb) Name() string { if a.silent { return filters.AbsorbSilentName - } else { - return filters.AbsorbName } + return filters.AbsorbName } func (a *absorb) CreateFilter(args []interface{}) (filters.Filter, error) { return a, nil } diff --git a/proxy/teebody.go b/proxy/teebody.go index a9bb637cff..590efe6092 100644 --- a/proxy/teebody.go +++ b/proxy/teebody.go @@ -1,10 +1,11 @@ package proxy import ( - log "github.com/sirupsen/logrus" "io" "net/http" "net/url" + + log "github.com/sirupsen/logrus" ) type teeTie struct {