Remove unnecessary variable assignment (#1414)

This commit is contained in:
Abraham Williams 2018-12-29 12:18:27 -06:00 committed by Ben Halpern
parent 1de6f47ae5
commit b30055ed12

View file

@ -1,12 +1,11 @@
class ReactionObserver < ActiveRecord::Observer
def after_create(reaction)
if reaction.category == "vomit"
emoji = ":cry:"
SlackBot.delay.ping(
"#{reaction.user.name} (https://dev.to#{reaction.user.path}) \nreacted with a #{reaction.category} on\nhttps://dev.to#{reaction.reactable.path}",
channel: "abuse-reports",
username: "abuse_bot",
icon_emoji: emoji,
icon_emoji: ":cry:",
)
end
rescue StandardError