Skip to content

Commit 4f62ec1

Browse files
Copilotjefim
andcommitted
Fix whitespace formatting issues for superlinter
Co-authored-by: jefim <1387820+jefim@users.noreply.github.com>
1 parent 8829925 commit 4f62ec1

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Frends.PostgreSQL.ExecuteQuery/Frends.PostgreSQL.ExecuteQuery.Tests/ExecuteQueryTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public async Task TestInsertWithReturning()
128128
};
129129

130130
var result = await PostgreSQL.ExecuteQuery(input, _options, new CancellationToken());
131-
131+
132132
// Should return the inserted values, not AffectedRows
133133
Assert.IsNotNull(result.QueryResult);
134134
Assert.AreEqual(1, result.QueryResult.Count);
@@ -150,7 +150,7 @@ public async Task TestUpdateWithReturning()
150150
};
151151

152152
var result = await PostgreSQL.ExecuteQuery(input, _options, new CancellationToken());
153-
153+
154154
// Should return the updated values
155155
Assert.IsNotNull(result.QueryResult);
156156
Assert.AreEqual(1, result.QueryResult.Count);
@@ -180,7 +180,7 @@ public async Task TestDeleteWithReturning()
180180
// Now delete it with RETURNING
181181
input.Query = @"DELETE FROM ""lista"" WHERE Id = 7 RETURNING Id, Selite";
182182
var result = await PostgreSQL.ExecuteQuery(input, _options, new CancellationToken());
183-
183+
184184
// Should return the deleted values
185185
Assert.IsNotNull(result.QueryResult);
186186
Assert.AreEqual(1, result.QueryResult.Count);
@@ -203,7 +203,7 @@ public async Task TestInsertWithReturningExplicit()
203203
};
204204

205205
var result = await PostgreSQL.ExecuteQuery(input, _options, new CancellationToken());
206-
206+
207207
// Should return the inserted values
208208
Assert.IsNotNull(result.QueryResult);
209209
Assert.AreEqual(1, result.QueryResult.Count);
@@ -226,7 +226,7 @@ public async Task TestInsertWithNonQueryExplicit()
226226
};
227227

228228
var result = await PostgreSQL.ExecuteQuery(input, _options, new CancellationToken());
229-
229+
230230
// Should return affected rows
231231
Assert.AreEqual(1, (int)result.QueryResult["AffectedRows"]);
232232
}

Frends.PostgreSQL.ExecuteQuery/Frends.PostgreSQL.ExecuteQuery/ExecuteQuery.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static async Task<Result> ExecuteQuery([PropertyTab] Input input, [Proper
6363
{
6464
using var transaction = conn.BeginTransaction(GetIsolationLevel(options.SqlTransactionIsolationLevel));
6565
cmd.Transaction = transaction;
66-
66+
6767
using (var reader = await cmd.ExecuteReaderAsync(cancellationToken))
6868
{
6969
// Check if the query returned any data (has columns)
@@ -78,7 +78,7 @@ public static async Task<Result> ExecuteQuery([PropertyTab] Input input, [Proper
7878
result = new Result(JToken.FromObject(new { AffectedRows = reader.RecordsAffected }));
7979
}
8080
} // Reader is disposed here
81-
81+
8282
await transaction.CommitAsync(cancellationToken);
8383
}
8484
break;

0 commit comments

Comments
 (0)