Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Dilan Sachintha Nayanajith <dilansachinthanos@gmail.com>
  • Loading branch information
TharmiganK and dilanSachi committed Sep 22, 2023
1 parent 9c10eb2 commit b4c41cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ballerina/redirect_http_client.bal
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ client isolated class RedirectClient {
// When performing redirect operation for non-safe method, message needs to be built before sending out the
// to keep the request message to subsequent redirect.
if !inRequest.hasMsgDataSource() {
byte[]|error binaryPayload = check inRequest.getBinaryPayload();
byte[]|error binaryPayload = inRequest.getBinaryPayload();
if binaryPayload is error {
log:printDebug("Error building datasource for request redirect: " + binaryPayload.message());
}
Expand Down
2 changes: 1 addition & 1 deletion ballerina/resiliency_http_retry_client.bal
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ isolated function performRetryAction(string path, Request request, HttpOperation
// When performing passthrough scenarios using retry client, message needs to be built before sending out the
// to keep the request message to retry.
if !inRequest.hasMsgDataSource() {
byte[]|error binaryPayload = check inRequest.getBinaryPayload();
byte[]|error binaryPayload = inRequest.getBinaryPayload();
if binaryPayload is error {
log:printDebug("Error building payload for request retry: " + binaryPayload.message());
}
Expand Down

0 comments on commit b4c41cc

Please sign in to comment.