Skip to content

Commit

Permalink
refactor: if-else drop else part (#2826)
Browse files Browse the repository at this point in the history
refactor: sort import

Signed-off-by: Sandor Szücs <[email protected]>
  • Loading branch information
szuecs authored Jan 5, 2024
1 parent fd2817c commit e297b55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions filters/diag/absorb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 2 additions & 1 deletion proxy/teebody.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit e297b55

Please sign in to comment.