1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-23 13:57:52 +00:00

clean all variable

This commit is contained in:
nishiki 2014-01-15 19:03:46 +01:00
parent abff68b382
commit 13d5afb9d0

View file

@ -39,7 +39,6 @@ class MPW
# @args: key -> the gpg key to encrypt # @args: key -> the gpg key to encrypt
# lang -> the software language # lang -> the software language
# file_gpg -> the file who is encrypted # file_gpg -> the file who is encrypted
# file_pwd -> the file who stock the password
# timeout_pwd -> time to save the password # timeout_pwd -> time to save the password
# @rtrn: true if le config file is create # @rtrn: true if le config file is create
def setup(key, lang, file_gpg, timeout_pwd) def setup(key, lang, file_gpg, timeout_pwd)
@ -117,10 +116,6 @@ class MPW
return true return true
rescue Exception => e rescue Exception => e
if !@file_pwd.nil? && File.exist?(@file_pwd)
File.delete(@file_pwd)
end
@error_msg = "#{I18n.t('error.gpg_file.decrypt')}\n#{e}" @error_msg = "#{I18n.t('error.gpg_file.decrypt')}\n#{e}"
return false return false
end end