Skip to content

Commit

Permalink
chore: Remove unnecessary parentheses in mock_service.bal
Browse files Browse the repository at this point in the history
  • Loading branch information
manodyaSenevirathne committed Aug 13, 2024
1 parent 5a826ff commit 6ccc037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ballerina/tests/mock_service.bal
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ http:Service mockService = service object {
resource function post chat/completions(@http:Payload CreateChatCompletionRequest payload) returns CreateChatCompletionResponse|http:BadRequest {

// Validate the request payload
if (payload.messages[0]["content"].toString() is "" || payload.model.toString() is "") {
if payload.messages[0]["content"].toString() is "" || payload.model.toString() is "" {
return http:BAD_REQUEST;
}

Expand Down

0 comments on commit 6ccc037

Please sign in to comment.