From 3d1cac313c0a47b82969ebbdca0bec1e0afae10f Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Thu, 10 Sep 2015 19:52:23 -0700 Subject: [PATCH] Use %v instead of %p to calm vet Signed-off-by: Alexander Morozov --- config/setup/controllertest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/setup/controllertest.go b/config/setup/controllertest.go index dcb2ca82..25592940 100644 --- a/config/setup/controllertest.go +++ b/config/setup/controllertest.go @@ -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) }