Skip to content

Commit

Permalink
Update spec/ameba/rule/lint/useless_assign_spec.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
  • Loading branch information
veelenga and Sija authored Oct 14, 2024
1 parent 4e180d4 commit 7a7d862
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions spec/ameba/rule/lint/useless_assign_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -525,19 +525,6 @@ module Ameba::Rule::Lint
puts v = 1 unless v = rand
v
CRYSTAL

expect_no_issues subject, <<-CRYSTAL
hash = {"foo" => "bar"}
def call(v)
end
unless v = hash["foo"]?
call v = "default"
end
v
CRYSTAL
end

it "reports if assignment is useless in the branch" do
Expand Down

0 comments on commit 7a7d862

Please sign in to comment.