Skip to content

Commit 80e8612

Browse files
committed
fix
1 parent 2b98a76 commit 80e8612

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/steep/diagnostic/ruby.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,7 @@ class NoMethod < Base
286286
def initialize(node:, type:, method:)
287287
loc = case node.type
288288
when :send
289-
if node.loc.respond_to?(:operator)
290-
node.loc.operator
291-
else
292-
node.loc.selector
293-
end
289+
node.loc.operator || node.loc.selector
294290
when :block
295291
node.children[0].loc.selector
296292
end

0 commit comments

Comments
 (0)