Remove unnecessary variable assignment (#1414)
This commit is contained in:
parent
1de6f47ae5
commit
b30055ed12
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue