From d429a344ef34bb9289616dc7ca11c161fabce5d7 Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Fri, 16 Oct 2020 15:26:55 +0200 Subject: Refactor js arrow functions --- parsers/http_request_parser.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'parsers') diff --git a/parsers/http_request_parser.go b/parsers/http_request_parser.go index d7ed81c..98ba8e3 100644 --- a/parsers/http_request_parser.go +++ b/parsers/http_request_parser.go @@ -148,9 +148,8 @@ func fetchRequest(request *http.Request, body string) string { if jsonData := toJSON(data); jsonData != "" { return "fetch(\"" + request.URL.String() + "\", " + jsonData + ");" - } else { - return "invalid-request" } + return "invalid-request" } func toJSON(obj interface{}) string { -- cgit v1.2.3-70-g09d2