Skip to content

Commit

Permalink
Change string to configurable and improve string interpolation
Browse files Browse the repository at this point in the history
Co-authored-by: Lakshan Weerasinghe <[email protected]>
  • Loading branch information
adibmbrk and LakshanWeerasinghe authored Jul 4, 2024
1 parent 368f57a commit 9842458
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/AutomatedSummaryReport/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ballerina/io;
import ballerinax/slack;

// Define the Slack API token
string token = ?;
configurable string token = ?;

// Define a record type to hold channel information
type ChannelType record {
Expand Down Expand Up @@ -56,8 +56,7 @@ public function main() returns error? {
string textMessage = "Automated Stand Up Report: ";
int i = 1;
foreach string text in latestText {
string number = i.toString();
textMessage += string `${number}. ${text}\n`;
textMessage += string `${i}. ${text}\n`;
i += 1;
}

Expand Down

0 comments on commit 9842458

Please sign in to comment.