1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 10:43:20 +00:00

fix bug try sync but sync is nil

This commit is contained in:
nishiki 2016-07-05 22:47:35 +02:00
parent 9124293607
commit 25a64d0303

View file

@ -317,7 +317,7 @@ class MPW
# Sync data with remote file
def sync
return if @config.empty? or @config['sync'].nil?
return if @config.empty? or @config['sync']['type'].to_s.empty?
tmp_file = "#{@wallet_file}.sync"
last_sync = @config['last_sync'].to_i