Commit 5608e1a1 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Raise first like an input check

parent a0162388
...@@ -30,11 +30,9 @@ module Gitlab ...@@ -30,11 +30,9 @@ module Gitlab
mail_key = extract_mail_key(mail) mail_key = extract_mail_key(mail)
handler = Handler.for(mail, mail_key) handler = Handler.for(mail, mail_key)
if handler raise UnknownIncomingEmail unless handler
handler.execute
else handler.execute
raise UnknownIncomingEmail
end
end end
def build_mail def build_mail
......
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