aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-01 14:16:57 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-01 14:16:57 -0200
commit0392586f090bc4a93ff523660d05c6147b7491a7 (patch)
treee1eb8d8cdb370b8344b0fcd5235b10a55de16505
parente98d98fd889d897f0e6809a01d91be9385f01941 (diff)
downloadkeyringer-0392586f090bc4a93ff523660d05c6147b7491a7.tar.gz
keyringer-0392586f090bc4a93ff523660d05c6147b7491a7.tar.bz2
Code cleanup
-rw-r--r--lib/keyring/crypt.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/keyring/crypt.rb b/lib/keyring/crypt.rb
index 4c9baaf..15430b4 100644
--- a/lib/keyring/crypt.rb
+++ b/lib/keyring/crypt.rb
@@ -25,10 +25,10 @@ module Keyring
end
def decrypt(filename)
- file = Backend::Fs.new()
- content = file.get_as_string(filename)
+ file = Backend::Fs.new
crypt = Backend::Crypt.new(nil)
- return crypt.decrypt(content)
+ content = file.get_as_string(filename)
+ crypt.decrypt(content)
end
def decryptKey(name)