Skip to content

Commit c71d7d9

Browse files
committed
Run standardrb --fix
1 parent e82f2ca commit c71d7d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/models/rake_ui/rake_task.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ def build_rake_command(args: nil, environment: nil)
118118
escaped_env = Shellwords.split(environment).map do |token|
119119
if token.match?(/\A[A-Z_][A-Z0-9_]*=.+\z/i)
120120
# Valid KEY=VALUE pattern - escape only the value
121-
key, value = token.split('=', 2)
121+
key, value = token.split("=", 2)
122122
"#{key}=#{Shellwords.escape(value)}"
123123
else
124124
# Invalid format (possible injection attempt) - skip this token
125125
nil
126126
end
127-
end.compact.join(' ')
127+
end.compact.join(" ")
128128

129129
command += "#{escaped_env} " if escaped_env.present?
130130
end

0 commit comments

Comments
 (0)