Variable should be local

This commit is contained in:
Joel D. Elkins 2021-01-17 15:33:22 -06:00
parent 36def2ee32
commit 5bf3c9eaf3
No known key found for this signature in database
GPG Key ID: 133589DC38921AE2

View File

@ -73,7 +73,7 @@ local function gen_ignore_check()
end
return function(path)
idx = path:match(".+()%.%w+$")
local idx = path:match(".+()%.%w+$")
local ignore_extension
if idx then
ignore_extension = ignore_list['*'..string.sub(path, idx)]