From 352bcd11cc82d377774d263e21680341136f3a65 Mon Sep 17 00:00:00 2001 From: Simon Lehn <48837958+srlehn@users.noreply.github.com> Date: Mon, 2 Nov 2020 17:37:39 +0100 Subject: [PATCH] remove unnecessary nil check in Debug filter --- filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter.go b/filter.go index 746406f..40cc15f 100644 --- a/filter.go +++ b/filter.go @@ -49,7 +49,7 @@ func FilterCookie(cookie *Cookie, filters ...Filter) bool { // Position Debug after the filter you want to test. var Debug Filter = func(cookie *Cookie) bool { fmt.Printf("%+#v\n", cookie) - return cookie != nil && true + return true } // domain filters