Skip to content

Commit

Permalink
fix signature check thanks @mashedcode
Browse files Browse the repository at this point in the history
  • Loading branch information
jkraemer committed Apr 13, 2017
1 parent 31a9dee commit bbe7993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mail/gpg/verify_result_attribute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def verify_result=(result)
# checks validity of signatures (true / false)
def signature_valid?
sigs = self.signatures
sigs.any? && sigs.detect{|s|!s.valid?}.blank?
sigs.any? && sigs.all?{|s|s.valid?}
end

# list of all signatures from verify_result
Expand Down

0 comments on commit bbe7993

Please sign in to comment.