mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Tweak reported location for Style/UnlessElse
This commit is contained in:
parent
bbbfdfc5a2
commit
caaf803ecd
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ module Ameba::Rule::Style
|
|||
return
|
||||
end
|
||||
|
||||
issue_for node, MSG do |corrector|
|
||||
issue_for location, cond_end_location, MSG do |corrector|
|
||||
keyword_begin_pos = source.pos(location)
|
||||
keyword_end_pos = keyword_begin_pos + {{ "unless".size }}
|
||||
keyword_range = keyword_begin_pos...keyword_end_pos
|
||||
|
|
Loading…
Reference in a new issue