Skip to content

Commit e08455f

Browse files
committed
fix: strip trailing whitespace failing CI format
Two blank lines carry trailing whitespace, so the "Check code formatting" step (dotnet format --verify-no-changes) exits 1. The CI/CD Pipeline has failed on master since these were introduced, and because pull_request builds check out the simulated merge with the base branch, every open PR inherits the red check. Whitespace only; no behaviour change.
1 parent 2893e13 commit e08455f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/apis/TranslateAPI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public static async Task<string> Ollama(string text, CancellationToken token = d
157157
]);
158158
}
159159
}
160-
160+
161161
var requestData = LLMRequestDataFactory.Create("Ollama", config.ModelName, messages, config.Temperature);
162162
requestData.keep_alive = config.keep_alive;
163163
string jsonContent = JsonSerializer.Serialize(requestData, requestData.GetType());

src/models/TranslateAPIConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public class Response
8989
private string apiUrl = "http://localhost:11434";
9090

9191
public int keep_alive = 600;
92-
92+
9393
public int Keep_alive
9494
{
9595
get => keep_alive;

0 commit comments

Comments
 (0)