Skip to content

Commit

Permalink
👮 Lint/Void: Literal :yes used in void context.
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jan 13, 2025
1 parent 51249fe commit 75510f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/fixtures/branches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Branches
def call(arg)
return if arg < 0

arg == 42 ? :yes : :no
_val = (arg == 42 ? :yes : :no)

if arg.odd?
:yes
Expand Down

0 comments on commit 75510f6

Please sign in to comment.