Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 67271c5

Browse files
author
ABaldwinHunter
committed
use default error message when no message is provided. don't fetch message key
1 parent 49dda72 commit 67271c5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/cc/services/github_pull_requests.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def presenter
9191
def update_status_error
9292
update_status(
9393
"error",
94-
message
94+
@payload["message"] || DEFAULT_ERROR
9595
)
9696
end
9797

@@ -197,10 +197,6 @@ def commit_sha
197197
@payload.fetch("commit_sha")
198198
end
199199

200-
def message
201-
@payload.fetch("message")
202-
end
203-
204200
def number
205201
@payload.fetch("number")
206202
end

0 commit comments

Comments
 (0)