From bf2d4edd084706b8693d3871e1770789eed6a952 Mon Sep 17 00:00:00 2001 From: Nivedhith Jeyashanker <64005874+Chilliwiddit@users.noreply.github.com> Date: Mon, 8 Jul 2024 15:13:27 +0530 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Nipuna Ransinghe --- examples/survey-feedback-analysis/main.bal | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/survey-feedback-analysis/main.bal b/examples/survey-feedback-analysis/main.bal index df39969..69067e5 100644 --- a/examples/survey-feedback-analysis/main.bal +++ b/examples/survey-feedback-analysis/main.bal @@ -20,8 +20,8 @@ import ballerinax/slack; configurable string token = ?; -final string channelName = "survey-coordination"; -final string surveyRequestMessage = "Reply to this survey message to give input on the company"; +const CHANNEL_NAME = "survey-coordination"; +const SURVEY_REQUEST_MSG = "Reply to this survey message to give input on the company"; final slack:Client slack = check new ({ auth: { @@ -34,7 +34,7 @@ public function main() returns error? { // Create a new channel for the survey json|error createChannelResponse = check slack->/conversations\.create.post({name: channelName}); if createChannelResponse is error { - log:printError(createChannelResponse.message()); + log:printError("Error creating the survey conversation: " + createChannelResponse.message()); return; }