Permalink
Browse files

#1 Don't downcase input, use names like intended

  • Loading branch information...
1 parent 2170e0d commit c44ccb3c52656e31558f25f7799c7881678df062 @snusnu snusnu committed Mar 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/lingohub/helpers.rb
@@ -37,7 +37,7 @@ def error(msg)
def confirm(message="Are you sure you wish to continue? (y/n)?")
display("#{message} ", false)
- ask.downcase == 'y'
+ ask == 'y'
end
def confirm_command(app)
@@ -61,7 +61,7 @@ def confirm_command(app)
display " ! To proceed, type \"#{app}\" or re-run this command with --confirm #{app}"
display ""
display "> ", false
- if ask.downcase != app
+ if ask != app
display " ! Input did not match #{app}. Aborted."
false
else

0 comments on commit c44ccb3

Please sign in to comment.