From a0720672bd91ae7d4df8ea638bf37650b0250956 Mon Sep 17 00:00:00 2001 From: nishiki Date: Sun, 16 Mar 2014 15:29:21 +0100 Subject: [PATCH] minor change --- MPW/UI/Cli.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MPW/UI/Cli.rb b/MPW/UI/Cli.rb index 9753d09..c3ea99f 100644 --- a/MPW/UI/Cli.rb +++ b/MPW/UI/Cli.rb @@ -50,10 +50,7 @@ class Cli if !@mpw.sync(@sync.get(@passwd), @config.last_update) puts "#{I18n.t('display.error')}: #{@mpw.error_msg}" if !@mpw.error_msg.nil? puts "#{I18n.t('display.error')}: #{@sync.error_msg}" if !@sync.error_msg.nil? - return false - end - - if !@sync.update(File.open(@config.file_gpg).read) + elsif !@sync.update(File.open(@config.file_gpg).read) puts "#{I18n.t('display.error')}: #{@sync.error_msg}" elsif !@config.set_last_update puts "#{I18n.t('display.error')}: #{@config.error_msg}"