mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
remove always-true condition
This commit is contained in:
parent
8398dfbae0
commit
1b15d03634
@ -452,8 +452,7 @@ module RuboCop
|
||||
replacement_args << "shell_parameter_format: #{shell_parameter_format}" unless shell_parameter_format.nil?
|
||||
|
||||
offending_node(node)
|
||||
replacement = "generate_completions_from_executable"
|
||||
replacement += "(#{replacement_args.join(", ")})" unless replacement_args.blank?
|
||||
replacement = "generate_completions_from_executable(#{replacement_args.join(", ")})"
|
||||
|
||||
problem "Use `#{replacement}` instead of `#{@offensive_node.source}`." do |corrector|
|
||||
corrector.replace(@offensive_node.source_range, replacement)
|
||||
|
Loading…
x
Reference in New Issue
Block a user