Skip to content

Commit

Permalink
Don't skip any unused local var named skip_file
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodywasishere committed Jan 29, 2025
1 parent 535a78b commit baf0352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ameba/rule/lint/unused_local_variable_access.cr
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module Ameba::Rule::Lint
end

def test(source, node : Crystal::Var, node_is_used : Bool)
return if node_is_used || node.name.in?("skip_file", "self")
return if node_is_used || node.name.in?("self")

issue_for node, MSG
end
Expand Down

0 comments on commit baf0352

Please sign in to comment.