From b7cea51f7aaa10be650bcc79d578126f94177997 Mon Sep 17 00:00:00 2001 From: Bill Nibz Date: Sat, 14 Oct 2017 15:15:38 -0400 Subject: [PATCH] Planter: Modify conditional logic --- lib/planter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/planter.rb b/lib/planter.rb index 8881117..df38ee0 100644 --- a/lib/planter.rb +++ b/lib/planter.rb @@ -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