Skip to content

Commit

Permalink
(CONT-792) - Correct Style/GlobalStdStream
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Apr 19, 2023
1 parent c9fd38d commit f87c000
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,6 @@ Style/ClassAndModuleChildren:
Exclude:
- 'lib/puppet/util/postgresql_validator.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/GlobalStdStream:
Exclude:
- 'tasks/sql.rb'

# Offense count: 9
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
Expand Down
2 changes: 1 addition & 1 deletion tasks/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get(sql, database, user, port, password, host)
{ status: stdout.strip }
end

params = JSON.parse(STDIN.read)
params = JSON.parse($stdin.read)
database = params['database']
host = params['host']
password = params['password']
Expand Down

0 comments on commit f87c000

Please sign in to comment.