Skip to content

Commit

Permalink
Use cop_config instead of redundant for_cop with self cop name
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed May 10, 2024
1 parent d7c233d commit c06dace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/style/one_line_conditional.rb
Expand Up @@ -75,7 +75,7 @@ def ternary_correction(node)
end

def always_multiline?
@config.for_cop('Style/OneLineConditional')['AlwaysCorrectToMultiline']
cop_config['AlwaysCorrectToMultiline']
end

def cannot_replace_to_ternary?(node)
Expand Down

0 comments on commit c06dace

Please sign in to comment.