Skip to content

Commit d1e7e35

Browse files
committed
dotnet format
1 parent 55f958c commit d1e7e35

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/NRedisStack/Search/VectorData.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private protected VectorData()
1414
}
1515

1616
public abstract Span<T> Span { get; }
17-
internal sealed class VectorBytesData(int byteLength) : VectorData<T>
17+
internal sealed class VectorBytesData(int byteLength) : VectorData<T>
1818
{
1919
private byte[]? _oversized = ArrayPool<byte>.Shared.Rent(byteLength);
2020
public override Span<T> Span => MemoryMarshal.Cast<byte, T>(Array.AsSpan(0, byteLength));
@@ -27,7 +27,7 @@ public override void Dispose()
2727
_oversized = null;
2828
if (tmp is not null) ArrayPool<byte>.Shared.Return(tmp);
2929
}
30-
public override RedisValue AsRedisValue() => (RedisValue)new ReadOnlyMemory<byte>(Array, 0, byteLength);
30+
public override RedisValue AsRedisValue() => (RedisValue)new ReadOnlyMemory<byte>(Array, 0, byteLength);
3131

3232
// *always* force; in 8.4, this is not required, but this is likely to change, so: avoid the problem immediately
3333
internal override bool ForceParameter => true; // byteLength != 0 && Array[0] == (byte)'$';
@@ -93,7 +93,7 @@ private protected VectorData()
9393
/// <inheritdoc cref="Create"/>
9494
public static implicit operator VectorData(ReadOnlyMemory<float> vector) => new VectorDataSingle(vector);
9595
*/
96-
96+
9797
/// <inheritdoc cref="Parameter"/>
9898
public static implicit operator VectorData(string name) => new VectorParameter(name);
9999

tests/NRedisStack.Tests/Search/HybridSearchUnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public void BasicVectorSearch()
160160
Assert.Equivalent(expected, GetArgs(query));
161161
}
162162

163-
private static readonly VectorData<float> SomeRandomDataHere = VectorData.LeaseWithValues<float>(1, 2, 3, 4 );
163+
private static readonly VectorData<float> SomeRandomDataHere = VectorData.LeaseWithValues<float>(1, 2, 3, 4);
164164

165165
private const string SomeRandomVectorValue = "AACAPwAAAEAAAEBAAACAQA==";
166166

@@ -200,7 +200,7 @@ public void BasicVectorSearch_WithKNN(bool withScoreAlias, bool withDistanceAlia
200200
expected = [.. expected, "YIELD_SCORE_AS", "my_score_alias"];
201201
}
202202

203-
expected = [..expected, "PARAMS", 2, "v", SomeRandomVectorValue];
203+
expected = [.. expected, "PARAMS", 2, "v", SomeRandomVectorValue];
204204
Assert.Equivalent(expected, GetArgs(query));
205205
}
206206

0 commit comments

Comments
 (0)