From aafc895b8788d5f9767bad5153f87623cdb1e3ad Mon Sep 17 00:00:00 2001 From: Krishnananthalingam Tharmigan <63336800+TharmiganK@users.noreply.github.com> Date: Fri, 22 Sep 2023 14:36:54 +0530 Subject: [PATCH] Apply suggestions from code review --- ballerina/redirect_http_client.bal | 2 +- ballerina/resiliency_http_retry_client.bal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ballerina/redirect_http_client.bal b/ballerina/redirect_http_client.bal index d776556eed..e892e9e977 100644 --- a/ballerina/redirect_http_client.bal +++ b/ballerina/redirect_http_client.bal @@ -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()); } diff --git a/ballerina/resiliency_http_retry_client.bal b/ballerina/resiliency_http_retry_client.bal index b707ca9165..fe1c19d6b6 100644 --- a/ballerina/resiliency_http_retry_client.bal +++ b/ballerina/resiliency_http_retry_client.bal @@ -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()); }