diff options
author | Emiliano Ciavatta | 2020-10-16 13:26:55 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-10-16 13:26:55 +0000 |
commit | d429a344ef34bb9289616dc7ca11c161fabce5d7 (patch) | |
tree | 664d56822eac93568f44c40ca25be725d1dd81c8 /parsers | |
parent | 5534413b3a3e6e783310be8147ac8340d3098a7e (diff) |
Refactor js arrow functions
Diffstat (limited to 'parsers')
-rw-r--r-- | parsers/http_request_parser.go | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |