Skip to content

Commit 4dbd3d4

Browse files
committed
skip rubocop warning in task
For whatever reason, rubocop cannot see that stderr is indeed a used variable.
1 parent 0ad721d commit 4dbd3d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/sql.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def get(sql, database, user, password)
88
cmd << "--database=#{database}" unless database.nil?
99
cmd << "--user=#{user}" unless user.nil?
1010
cmd << "--password=#{password}" unless password.nil?
11-
stdout, stderr, status = Open3.capture3(*cmd)
11+
stdout, stderr, status = Open3.capture3(*cmd) # rubocop:disable Lint/UselessAssignment
1212
raise Puppet::Error, _("stderr: ' %{stderr}') % { stderr: stderr }") if status != 0
1313
{ status: stdout.strip }
1414
end

0 commit comments

Comments
 (0)