lib/sym/app/commands/password_protect_key.rb in sym-2.8.5 vs lib/sym/app/commands/password_protect_key.rb in sym-2.10.0

- old
+ new

@@ -14,13 +14,13 @@ raise Sym::Errors::NoPrivateKeyFound.new("Unable to resolve private key from argument '#{opts[:key]}'") if self.key.nil? the_key = self.key if opts[:password] - encrypted_key, password = encrypt_with_password(the_key) - add_password_to_the_cache(encrypted_key, password) - the_key = encrypted_key - end + encrypted_key, password = encrypt_with_password(the_key) + add_password_to_the_cache(encrypted_key, password) + the_key = encrypted_key + end add_to_keychain_if_needed(the_key) the_key rescue Sym::Errors::PasswordsDontMatch, Sym::Errors::PasswordTooShort => e