Skip to content

Commit

Permalink
出力する情報をunusedやundefinedと合わせた。
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatakinov committed Jul 18, 2022
1 parent f761df5 commit af07e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yayalint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ local function recursive(scope, gv, upper, filename, funcname, global, opt)
if type(v) == "table" then
if v.assign then
print(filename, v.line, v.col)
output:append(table.concat({"assinment operator exists in conditional statement:", "at", filename, "pos:", v.line .. ":" .. v.col}, OutputSep)):append(NewLine)
output:append(table.concat({"assinment operator exists in conditional statement:", v.assign, "at", filename, "pos:", v.line .. ":" .. v.col}, OutputSep)):append(NewLine)
end
if #v > 0 then
assignmentInCondition(v, filename)
Expand Down

0 comments on commit af07e31

Please sign in to comment.