lib/lita/handlers/activedirectory.rb in lita-activedirectory-1.2.0 vs lib/lita/handlers/activedirectory.rb in lita-activedirectory-1.2.1
- old
+ new
@@ -192,15 +192,14 @@
)
end
end
def handle_unlock_query(response, user, result)
- case result
- when true
+ if result
response.reply_with_mention(
t('replies.unlock.success', user: user)
)
- when false
+ else
response.reply_with_mention(
t('replies.unlock.fail', user: user)
)
end
end