Commit a0162388 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Avoid assignment in if

parent fcc6a592
......@@ -28,8 +28,9 @@ module Gitlab
mail = build_mail
mail_key = extract_mail_key(mail)
handler = Handler.for(mail, mail_key)
if handler = Handler.for(mail, mail_key)
if handler
handler.execute
else
raise UnknownIncomingEmail
......
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