Skip to content

Commit bdb1cbe

Browse files
committed
Fix a few inspection errors.
1 parent 298cbf3 commit bdb1cbe

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

Remora.Rest.Xunit/Json/JsonArrayMatcherBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public JsonArrayMatcherBuilder WithSingleElement(Action<JsonElementMatcherBuilde
148148

149149
return matchingCount switch
150150
{
151-
> 1 => throw SingleException.MoreThanOne(matchingCount, null, "element", new()),
151+
> 1 => throw SingleException.MoreThanOne(matchingCount, null, "element", Array.Empty<int>()),
152152
< 1 => throw SingleException.Empty(null, "element"),
153153
_ => true
154154
};

Tests/Remora.Rest.Tests/Data/DataObjects/ExcludedData.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
namespace Remora.Rest.Tests.Data.DataObjects;
88

9+
#pragma warning disable SA1402
10+
911
/// <summary>
1012
/// A data class that serves as an implementation for <see cref="IExcludedData"/>.
1113
/// </summary>

Tests/Remora.Rest.Tests/Data/DataObjects/NonConventionalData.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
namespace Remora.Rest.Tests.Data.DataObjects;
88

9+
#pragma warning disable SA1402
10+
911
/// <summary>
1012
/// A data class that serves as an implementation for <see cref="INonConventionalData"/>.
1113
/// </summary>

Tests/Remora.Rest.Tests/Data/DataObjects/OldStyleData.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ namespace Remora.Rest.Tests.Data.DataObjects;
1212
public sealed class OldStyleData : IOldStyleData
1313
{
1414
/// <inheritdoc/>
15-
required public string Value { get; init; }
15+
public required string Value { get; init; }
1616

1717
/// <inheritdoc/>
18-
required public int OtherValue { get; init; }
18+
public required int OtherValue { get; init; }
1919
}

0 commit comments

Comments
 (0)