Skip to content

Commit

Permalink
also update some references to STDIN
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamms committed Mar 27, 2024
1 parent a1de0f6 commit b3a7370
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/dotd
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def puts_quit_message
EOS
end

# Flushes STDIN, returning the results of gets.
# Flushes $stdin, returning the results of gets.
# @return [String] The result of gets.
def flush_and_gets
$stdin.iflush
Expand Down
2 changes: 1 addition & 1 deletion bin/update-contact-email
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def update_email(old_email, new_email)
end
puts "Update #{old_email} with #{new_email}? (y/N)"

unless STDIN.readline.strip.casecmp?('y')
unless $stdin.readline.strip.casecmp?('y')
puts 'Canceled.'
exit
end
Expand Down
2 changes: 1 addition & 1 deletion dashboard/scripts/archive/chicago_stats
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative '../../config/environment'

STDIN.each do |row|
$stdin.each do |row|
email = row.split(',').first
if email && email =~ /@/
if user = User.find_by_email_or_hashed_email(email)
Expand Down

0 comments on commit b3a7370

Please sign in to comment.