Skip to content

Commit

Permalink
Clean luacheck warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Dec 27, 2024
1 parent d347b7e commit 90bfcbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dotnet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ local function dotnet_complete(word, index, line_state, builder) -- luacheck: no
end

if dotnet then
local commandline, endword, endpos = sanitize_line(line_state)
local input, endword, endpos = sanitize_line(line_state)
debug_print_query(endword)
local command = string.format('2>nul %s complete --position %s "%s"', dotnet, endpos, commandline) -- luacheck: no max line length
local command = string.format('2>nul %s complete --position %s "%s"', dotnet, endpos, input)
local f = io.popen(command)
if f then
for line in f:lines() do
Expand Down Expand Up @@ -182,7 +182,7 @@ end

local parser = clink.arg.new_parser

local function collect_project_files(word, index, line_state, builder, user_data) -- luacheck: no unused args
local function collect_project_files(word, _, _, _, user_data)
if user_data and user_data.project_argument then
return {}
elseif clink.filematchesexact then
Expand All @@ -197,7 +197,7 @@ local function collect_project_files(word, index, line_state, builder, user_data
end
end

local function package_reference_onadvance(arg_index, word, word_index, line_state, user_data) -- luacheck: no unused args, no max line length
local function package_reference_onadvance(arg_index, word, _, _, user_data)
if arg_index == 1 then
if word ~= "" and word ~= "package" and word ~= "reference" then
if user_data and not user_data.project_argument then
Expand Down

0 comments on commit 90bfcbb

Please sign in to comment.