aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/response.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/response.rb')
-rw-r--r--lib/sisu/v3/response.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3/response.rb b/lib/sisu/v3/response.rb
index 675b249e..d660d398 100644
--- a/lib/sisu/v3/response.rb
+++ b/lib/sisu/v3/response.rb
@@ -61,9 +61,9 @@ module SiSU_Response
response='redo'
print ask + " ['yes', 'no' or 'quit']: "
response=File.new('/dev/tty').gets.strip
- ans=if response=='yes'; true
- elsif response=='no'; false
- elsif response =~/^quit|exit$/; exit
+ ans=if response=='yes' then true
+ elsif response=='no' then false
+ elsif response =~/^quit|exit$/ then exit
else puts "[please type: 'yes', 'no' or 'quit']"
response?(ask)
end