fix(lint): lint warnings #24226

This commit is contained in:
Raphael
2023-07-10 19:38:15 +08:00
committed by GitHub
parent fbeef0d4ef
commit 766f4978d6
13 changed files with 59 additions and 63 deletions

View File

@@ -30,14 +30,8 @@ do
-- https://tools.ietf.org/html/rfc3986#section-2.2
rfc3986 = "^A-Za-z0-9%-._~!$&'()*+,;=:@/",
}
local sbyte, tohex = string.byte
if jit then
tohex = require('bit').tohex
else
tohex = function(b)
return string.format('%02x', b)
end
end
local sbyte = string.byte
local tohex = require('bit').tohex
---@private
local function percent_encode_char(char)