From 3cc6f6ac4cba252e06738daabbdc54c249487c5d Mon Sep 17 00:00:00 2001 From: Kanishka Gunawardana <83855665+KATTA-00@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:30:52 +0530 Subject: [PATCH] Update examples/Sports-headline-analyzer/main.bal Co-authored-by: Nipuna Ransinghe --- examples/Sports-headline-analyzer/main.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Sports-headline-analyzer/main.bal b/examples/Sports-headline-analyzer/main.bal index a003241..61921c5 100644 --- a/examples/Sports-headline-analyzer/main.bal +++ b/examples/Sports-headline-analyzer/main.bal @@ -110,7 +110,7 @@ public function main() returns error? { finetunes:DeleteFileResponse deleteFileResponse = check openAIFinetunes->/files/[trainingFileId].delete(); - if (deleteFileResponse.deleted == true) { + if (deleteFileResponse.deleted) { io:println("Training file deleted successfully."); } else { io:println("Failed to delete the training file.");