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.");