diff options
author | Raphael <glepnir@neovim.pro> | 2023-07-10 19:38:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-10 04:38:15 -0700 |
commit | 766f4978d6cb146511cf0b676c01e5327db46647 (patch) | |
tree | 84fddf19619077a9e8fcf8bab33dbedbe08d0fad /runtime/lua/vim/uri.lua | |
parent | fbeef0d4ef1aadc4e50b9f33946cf4dca8ca6b62 (diff) | |
download | rneovim-766f4978d6cb146511cf0b676c01e5327db46647.tar.gz rneovim-766f4978d6cb146511cf0b676c01e5327db46647.tar.bz2 rneovim-766f4978d6cb146511cf0b676c01e5327db46647.zip |
fix(lint): lint warnings #24226
Diffstat (limited to 'runtime/lua/vim/uri.lua')
-rw-r--r-- | runtime/lua/vim/uri.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/runtime/lua/vim/uri.lua b/runtime/lua/vim/uri.lua index 08ed829114..dec7840eb0 100644 --- a/runtime/lua/vim/uri.lua +++ b/runtime/lua/vim/uri.lua @@ -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) |