Skip to content

Commit 77176ab

Browse files
committed
Fix format
Signed-off-by: Alex Rehnby-Martin <alex.rehnby-martin@improving.com>
1 parent 4e0c382 commit 77176ab

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

sources/Valkey.Glide/Internals/Request.GenericCommands.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ public static Cmd<bool, bool> KeyExpireAsync(ValkeyKey key, TimeSpan? expiry, Ex
5656
}
5757

5858
// Choose command based on precision
59-
var command = expiry.HasValue && (long)expiry.Value.TotalMilliseconds % 1000 != 0
60-
? RequestType.PExpire
59+
var command = expiry.HasValue && (long)expiry.Value.TotalMilliseconds % 1000 != 0
60+
? RequestType.PExpire
6161
: RequestType.Expire;
62-
62+
6363
return Simple<bool>(command, [.. args]);
6464
}
6565

tests/Valkey.Glide.IntegrationTests/GenericCommandTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,8 @@ public async Task TestSortAndStore_WithPatterns(GlideClient client)
734734
public async Task TestKeysAsync_LargeDataset(GlideClient client)
735735
{
736736
string prefix = Guid.NewGuid().ToString();
737-
738-
var tasks = Enumerable.Range(0, 25000).Select(i =>
737+
738+
var tasks = Enumerable.Range(0, 25000).Select(i =>
739739
client.StringSetAsync($"{prefix}:key{i}", $"value{i}"));
740740
await Task.WhenAll(tasks);
741741

@@ -750,5 +750,4 @@ public async Task TestKeysAsync_LargeDataset(GlideClient client)
750750
long sampleCount = await client.KeyExistsAsync(sampleKeys);
751751
Assert.Equal(100L, sampleCount);
752752
}
753-
754-
}
753+
}

tests/Valkey.Glide.UnitTests/CommandTests.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,17 +384,20 @@ public void ValidateCommandConverters()
384384
() => Assert.False(Request.KeyMoveAsync("key", 1).Converter(false)),
385385

386386
// SCAN Commands Converters
387-
() => {
387+
() =>
388+
{
388389
var result = Request.ScanAsync(0).Converter(new object[] { 0L, new object[] { (gs)"key1", (gs)"key2" } });
389390
Assert.Equal(0L, result.Item1);
390391
Assert.Equal(["key1", "key2"], result.Item2.Select(k => k.ToString()).ToArray());
391392
},
392-
() => {
393+
() =>
394+
{
393395
var result = Request.ScanAsync(10).Converter(new object[] { 5L, new object[] { (gs)"test" } });
394396
Assert.Equal(5L, result.Item1);
395397
Assert.Equal(["test"], result.Item2.Select(k => k.ToString()).ToArray());
396398
},
397-
() => {
399+
() =>
400+
{
398401
var result = Request.ScanAsync(0).Converter(new object[] { 0L, Array.Empty<object>() });
399402
Assert.Equal(0L, result.Item1);
400403
Assert.Empty(result.Item2);

0 commit comments

Comments
 (0)