Commit 3b090bb9 authored by Alexis Reigel's avatar Alexis Reigel
Browse files

simplify check for verified email in collection

parent 29dc38005453
......@@ -70,11 +70,11 @@ def emails_with_verified_status
end
def verified?
emails_with_verified_status.any? { |_email, verified| verified }
emails_with_verified_status.values.any?
end
def verified_and_belongs_to_email?(email)
emails_with_verified_status.any? { |key_email, verified| key_email == email && verified }
emails_with_verified_status.fetch(email, false)
end
def update_invalid_gpg_signatures
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment