Skip to content

Commit

Permalink
Fix 8.0.300 analyzer issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejball committed May 20, 2024
1 parent 9f1c027 commit 346a441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Facility.Definition/Http/HttpResponseInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public sealed class HttpResponseInfo : HttpElementInfo
/// <summary>
/// The children of the element, if any.
/// </summary>
public override IEnumerable<HttpElementInfo> GetChildren() => NormalFields?.AsEnumerable<HttpElementInfo>() ?? new[] { BodyField! };
public override IEnumerable<HttpElementInfo> GetChildren() => NormalFields?.AsEnumerable<HttpElementInfo>() ?? [BodyField!];

internal HttpResponseInfo(HttpStatusCode statusCode, IReadOnlyList<HttpNormalFieldInfo> normalFields)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ServiceTypeInfoTests
[TestCase("datetime", ServiceTypeKind.DateTime)]
public void PrimitiveTypes(string name, ServiceTypeKind kind)
{
var service = new ServiceInfo(name: "MyApi", members: new[] { new ServiceDtoInfo("MyDto", fields: [new ServiceFieldInfo("myField", name)]) });
var service = new ServiceInfo(name: "MyApi", members: [new ServiceDtoInfo("MyDto", fields: [new ServiceFieldInfo("myField", name)])]);
var type = service.GetFieldType(service.Dtos[0].Fields[0])!;
type.Kind.Should().Be(kind);
type.Dto.Should().BeNull();
Expand Down

0 comments on commit 346a441

Please sign in to comment.