fix shell parameter type

This commit is contained in:
Max Eisner 2022-07-27 17:00:59 +02:00
parent d963a1ae2f
commit e4b67e84dd
No known key found for this signature in database
GPG Key ID: 4BF122C22879F0C8

View File

@ -435,9 +435,9 @@ module RuboCop
shell_parameter_format = if shell_parameter_stripped.empty?
nil
elsif shell_parameter_stripped == "--"
:flag
":flag"
elsif shell_parameter_stripped == "--shell="
:arg
":arg"
else
"\"#{shell_parameter_stripped}\""
end