Skip to content

Commit

Permalink
Use ARGF instead of STDIN.read with a #tty? check, closes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilco van Duinkerken authored and Wilco van Duinkerken committed Aug 31, 2015
1 parent 828d9bb commit 18a82e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opener/language_identifier/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def configure_slop
:probs => enable_probs
)

input = STDIN.tty? ? nil : STDIN.read
input = ARGF.read

puts identifier.run(input)
end
Expand Down

0 comments on commit 18a82e7

Please sign in to comment.