From 3f2bb3f81744eb9095715e84578f72791c6fdc77 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 30 Dec 2016 18:25:23 +0100 Subject: net.http: Remove unused imports [luacheck] --- net/http.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/http.lua b/net/http.lua index 5c1f2058..55b4a2d6 100644 --- a/net/http.lua +++ b/net/http.lua @@ -17,9 +17,9 @@ local server = require "net.server" local t_insert, t_concat = table.insert, table.concat; local pairs = pairs; -local tonumber, tostring, xpcall, select, traceback = - tonumber, tostring, xpcall, select, debug.traceback; -local assert, error = assert, error +local tonumber, tostring, xpcall, traceback = + tonumber, tostring, xpcall, debug.traceback; +local error = error local log = require "util.logger".init("http"); -- cgit v1.2.3 From ddb503576fa4e20e454fa07c351c10e62fbb997c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 30 Dec 2016 18:25:36 +0100 Subject: net.http: Strip trailing whitespace --- net/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/http.lua b/net/http.lua index 55b4a2d6..dcf94bdd 100644 --- a/net/http.lua +++ b/net/http.lua @@ -209,7 +209,7 @@ end return { request = request; - + -- COMPAT urlencode = util_http.urlencode; urldecode = util_http.urldecode; -- cgit v1.2.3