From 1def7d57b9d739e97a12749d9bffcf257fa19b52 Mon Sep 17 00:00:00 2001 From: RDPerera Date: Thu, 30 Nov 2023 08:42:59 +0530 Subject: [PATCH] address review comments --- .github/workflows/trivy-scan.yml | 3 ++- .gitignore | 2 +- ballerina/build.gradle | 2 +- build.gradle | 2 +- examples/accounts/list_accounts.bal | 1 + 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/trivy-scan.yml b/.github/workflows/trivy-scan.yml index a84a0c20..e70a2164 100644 --- a/.github/workflows/trivy-scan.yml +++ b/.github/workflows/trivy-scan.yml @@ -12,4 +12,5 @@ jobs: uses: ballerina-platform/ballerina-standard-library/.github/workflows/trivy-scan-template.yml@main secrets: inherit with: - additional-build-flags: "-x :twilio-examples:build" \ No newline at end of file + additional-build-flags: "-x :twilio-examples:build" + \ No newline at end of file diff --git a/.gitignore b/.gitignore index a8d4f861..899dbdc7 100644 --- a/.gitignore +++ b/.gitignore @@ -47,4 +47,4 @@ build generated # Environment files -*.env \ No newline at end of file +*.env diff --git a/ballerina/build.gradle b/ballerina/build.gradle index 76aad939..c285ff98 100644 --- a/ballerina/build.gradle +++ b/ballerina/build.gradle @@ -77,4 +77,4 @@ clean { } publishToMavenLocal.dependsOn build -publish.dependsOn build \ No newline at end of file +publish.dependsOn build diff --git a/build.gradle b/build.gradle index db93d198..e60cb681 100644 --- a/build.gradle +++ b/build.gradle @@ -74,4 +74,4 @@ release { requireBranch = "release-${moduleVersion}" pushToRemote = 'origin' } -} \ No newline at end of file +} diff --git a/examples/accounts/list_accounts.bal b/examples/accounts/list_accounts.bal index 5bea9c2a..92c96e16 100644 --- a/examples/accounts/list_accounts.bal +++ b/examples/accounts/list_accounts.bal @@ -32,6 +32,7 @@ twilio:ConnectionConfig twilioConfig = { public function main() returns error? { twilio:Client twilio = check new (twilioConfig); twilio:ListAccountResponse response = check twilio->listAccount(); + twilio:Account[]? accounts = response.accounts; if accounts is twilio:Account[] { accounts.forEach(function(twilio:Account account) {