Skip to content

Commit f87c000

Browse files
committed
(CONT-792) - Correct Style/GlobalStdStream
1 parent c9fd38d commit f87c000

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.rubocop_todo.yml

-6
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,6 @@ Style/ClassAndModuleChildren:
160160
Exclude:
161161
- 'lib/puppet/util/postgresql_validator.rb'
162162

163-
# Offense count: 1
164-
# This cop supports unsafe autocorrection (--autocorrect-all).
165-
Style/GlobalStdStream:
166-
Exclude:
167-
- 'tasks/sql.rb'
168-
169163
# Offense count: 9
170164
# This cop supports safe autocorrection (--autocorrect).
171165
Style/IfUnlessModifier:

tasks/sql.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def get(sql, database, user, port, password, host)
1919
{ status: stdout.strip }
2020
end
2121

22-
params = JSON.parse(STDIN.read)
22+
params = JSON.parse($stdin.read)
2323
database = params['database']
2424
host = params['host']
2525
password = params['password']

0 commit comments

Comments
 (0)