Skip to content

Commit bea80aa

Browse files
committed
Check for nil
1 parent 675f03c commit bea80aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/lib/github.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def update_comment(comment_id, content)
7171

7272
# Add a reaction to the comment that triggered this responder
7373
def react_to_comment(reaction = "+1")
74-
if context.comment_id.present?
74+
if context.comment_id
7575
github_client.create_issue_comment_reaction(context.repo, context.comment_id, reaction)
7676
end
7777
end

0 commit comments

Comments
 (0)