Skip to content

Commit 75510f6

Browse files
committed
👮 Lint/Void: Literal :yes used in void context.
1 parent 51249fe commit 75510f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/fixtures/branches.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Branches
22
def call(arg)
33
return if arg < 0
44

5-
arg == 42 ? :yes : :no
5+
_val = (arg == 42 ? :yes : :no)
66

77
if arg.odd?
88
:yes

0 commit comments

Comments
 (0)