lib/PrivateMethods.rb in PlayRockPaperScissorsGame-2.7.1 vs lib/PrivateMethods.rb in PlayRockPaperScissorsGame-2.7.2
- old
+ new
@@ -10,10 +10,10 @@
if Constants::NTRY_TO_SYM.key?(choice)
return Constants::NTRY_TO_SYM[choice]
elsif choice != Constants::VALID_ENTRIES
puts ColorizedString["That entry is invalid. Please re-enter."].colorize(:red)
else
- # do nothing
+ return nil
end
# # one may also do this:
# case
# when Constants::NTRY_TO_SYM.key?(choice)
# return Constants::NTRY_TO_SYM[choice]