Skip to content

Commit

Permalink
Update management/server/http/middleware/bypass/bypass.go
Browse files Browse the repository at this point in the history
Co-authored-by: Viktor Liu <viktor@netbird.io>
  • Loading branch information
surik and lixmal authored Feb 26, 2024
1 parent 8c2fde0 commit bb1bfca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/server/http/middleware/bypass/bypass.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func AddBypassPath(path string) error {
byPassMutex.Lock()
defer byPassMutex.Unlock()
if err := validatePath(path); err != nil {
return err
return fmt.Errorf("validate: %w", err)

Check failure on line 23 in management/server/http/middleware/bypass/bypass.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: fmt (typecheck)

Check failure on line 23 in management/server/http/middleware/bypass/bypass.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: fmt) (typecheck)

Check failure on line 23 in management/server/http/middleware/bypass/bypass.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: fmt) (typecheck)
}
bypassPaths[path] = struct{}{}
return nil
Expand Down

0 comments on commit bb1bfca

Please sign in to comment.