]> git.openstreetmap.org Git - rails.git/blobdiff - script/deliver-message
Fix some new rubocop warnings
[rails.git] / script / deliver-message
index 2c440c3ec60144b00d6cb571dae9ec8e3569df4e..ffb23ef116937b33b983198138a736e3c02f4625 100755 (executable)
@@ -25,7 +25,7 @@ exit 0 if date < 1.month.ago
 
 message&.update(:message_read => true)
 
 
 message&.update(:message_read => true)
 
-mail = Mail.new(STDIN.read
+mail = Mail.new($stdin.read
                      .encode(:universal_newline => true)
                      .encode(:crlf_newline => true))
 
                      .encode(:universal_newline => true)
                      .encode(:crlf_newline => true))