Planter: Modify conditional logic

This commit is contained in:
Bill Nibz 2017-10-14 15:15:38 -04:00
parent ca5ddf7baf
commit b7cea51f7a

View file

@ -160,7 +160,8 @@ module Planter
print "Unsaved changes will be lost. Still quit? [y/n]> "
verify = STDIN.gets.chomp.to_s.downcase
return 0 if verify == "y" else branch_no
return 0 if verify == "y"
return branch_no
else
print "Unknown option. Returning to current branch.)\n\n"
return branch_no