From b984446fd3119895fda7be69213c6fd3cdce5026 Mon Sep 17 00:00:00 2001 From: Nipuna Ransinghe Date: Mon, 25 Mar 2024 17:01:55 +0530 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Nuvindu Nirmana <63797478+Nuvindu@users.noreply.github.com> --- README.md | 1 - examples/customer-satisfaction-survey-analysis/main.bal | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0ebe936..c1c1a72 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![Build](https://github.com/ballerina-platform/module-ballerinax-zendesk/actions/workflows/ci.yml/badge.svg)](https://github.com/ballerina-platform/module-ballerinax-zendesk/actions/workflows/ci.yml) [![Trivy](https://github.com/ballerina-platform/module-ballerinax-zendesk/actions/workflows/trivy-scan.yml/badge.svg)](https://github.com/ballerina-platform/module-ballerinax-zendesk/actions/workflows/trivy-scan.yml) -[![codecov](https://codecov.io/gh/ballerina-platform/module-ballerinax-zendesk/branch/master/graph/badge.svg)](https://codecov.io/gh/ballerina-platform/module-ballerinax-zendesk) [![GraalVM Check](https://github.com/ballerina-platform/module-ballerinax-zendesk/actions/workflows/build-with-bal-test-graalvm.yml/badge.svg)](https://github.com/ballerina-platform/module-ballerinax-zendesk/actions/workflows/build-with-bal-test-graalvm.yml) [![GitHub Last Commit](https://img.shields.io/github/last-commit/ballerina-platform/module-ballerinax-zendesk.svg)](https://github.com/ballerina-platform/module-ballerinax-zendesk/commits/master) [![GitHub Issues](https://img.shields.io/github/issues/ballerina-platform/ballerina-library/module/github.svg?label=Open%20Issues)](https://github.com/ballerina-platform/ballerina-library/labels/module%2Fgithub) diff --git a/examples/customer-satisfaction-survey-analysis/main.bal b/examples/customer-satisfaction-survey-analysis/main.bal index 87e19e0..0cb0a6d 100644 --- a/examples/customer-satisfaction-survey-analysis/main.bal +++ b/examples/customer-satisfaction-survey-analysis/main.bal @@ -13,6 +13,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + import ballerina/io; import ballerinax/zendesk; @@ -36,7 +37,7 @@ public function main() returns error? { io:println("Processing Ticket: ", ticketId); // Send satisfaction survey for each solved ticket - if (ticket.status == "solved") { + if ticket.status == "solved" { zendesk:SatisfactionRatingResponse _ = check zendesk->/api/v2/tickets/[ticketId]/satisfaction_rating.post; } }