remove unnecessary check
authormh <mh@immerda.ch>
Mon, 2 May 2011 11:28:27 +0000 (13:28 +0200)
committermh <mh@immerda.ch>
Mon, 2 May 2011 11:28:27 +0000 (13:28 +0200)
If the hash is nil or false, the comparition fails anyway.

lib/coquelicot.rb

index 5ac7561..0b4ed7b 100644 (file)
@@ -24,7 +24,7 @@ module Coquelicot
     end
 
     def one_time_only?
     end
 
     def one_time_only?
-      @meta['One-time-only'] && @meta['One-time-only'] == 'true'
+      @meta['One-time-only'] == 'true'
     end
 
     def self.create(src, pass, meta)
     end
 
     def self.create(src, pass, meta)