From be624ce771b76036e3d7ad07fcb19bfe19aa7f1b Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Fri, 4 Jul 2014 01:50:39 +0000 Subject: [PATCH] Garbage paren char, also remove comments above null checks --- jail.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jail.go b/jail.go index 5092e06..9228056 100644 --- a/jail.go +++ b/jail.go @@ -14,12 +14,10 @@ func jailGetHandler(res http.ResponseWriter, req *http.Request, fail2goConn *fai useDNS, _ := fail2goConn.JailUseDNS(mux.Vars(req)["jail"]) maxRetry, _ := fail2goConn.JailMaxRetry(mux.Vars(req)["jail"]) - //If IPList is nil/null/doesn't exist, then initialize it to an empty string array. This resolves the front end issue where a null value is trying to be parsed for the ips. if IPList == nil { IPList = []string{} } - //If failRegexes is nil/null/doesn't exist, then initialize it to an empty string array. This resolves the front end issue where a null value is trying to be parsed for the list of regular expressions. - if(failRegexes == nil { + if failRegexes == nil { failRegexes = []string{} }