mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Use %v instead of %p to calm vet
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
dc4a5ae1fd
commit
3d1cac313c
1 changed files with 1 additions and 1 deletions
|
@ -28,5 +28,5 @@ var EmptyNext = middleware.HandlerFunc(func(w http.ResponseWriter, r *http.Reque
|
|||
|
||||
// SameNext does a pointer comparison between next1 and next2.
|
||||
func SameNext(next1, next2 middleware.Handler) bool {
|
||||
return fmt.Sprintf("%p", next1) == fmt.Sprintf("%p", next2)
|
||||
return fmt.Sprintf("%v", next1) == fmt.Sprintf("%v", next2)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue