Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nipuna Ransinghe  <[email protected]>
  • Loading branch information
Chilliwiddit and NipunaRanasinghe authored Jul 8, 2024
1 parent 6cfa09e commit bf2d4ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/survey-feedback-analysis/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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;
}

Expand Down

0 comments on commit bf2d4ed

Please sign in to comment.