From 343ad54b9ad40252e7ff6073714462d878945380 Mon Sep 17 00:00:00 2001 From: Kent Gruber Date: Tue, 1 May 2018 23:21:52 -0400 Subject: [PATCH] if block ends with a return statement drop this else and outdent its block --- modules/http_proxy_base_sslstriper.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/http_proxy_base_sslstriper.go b/modules/http_proxy_base_sslstriper.go index 5d2142ae..412d4694 100644 --- a/modules/http_proxy_base_sslstriper.go +++ b/modules/http_proxy_base_sslstriper.go @@ -304,10 +304,9 @@ func (s *SSLStripper) isMaxRedirs(hostname string) bool { // reset delete(s.redirs, hostname) return true - } else { - // increment - s.redirs[hostname]++ } + // increment + s.redirs[hostname]++ } else { // start tracking redirections s.redirs[hostname] = 1