1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-23 13:57:52 +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 # Sync data with remote file
def sync 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" tmp_file = "#{@wallet_file}.sync"
last_sync = @config['last_sync'].to_i last_sync = @config['last_sync'].to_i