Skip to content

Commit da83ae5

Browse files
committed
Minor changes
1 parent adc3485 commit da83ae5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 clint21.eth ⚡️
3+
Copyright (c) 2025 XXI, LLC ⚡️
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/Initium/Response/ApiResponseBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace Initium.Response;
99
/// Provides a fluent builder for creating <see cref="Response.ApiResponse"/> objects.
1010
/// </summary>
1111
[SuppressMessage("ReSharper", "UnusedMember.Global")]
12+
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
1213
internal class ApiResponseBuilder
1314
{
1415
public ApiResponse ApiResponse { get; set; }

src/Initium/Results/InvalidModelStateResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public InvalidModelStateResult(ActionContext actionContext) : base(actionContext
1919
var validationErrors = actionContext.ModelState
2020
.Where(ms => ms.Value != null && ms.Value.Errors.Any())
2121
.SelectMany(ms => ms.Value?.Errors.Select(error =>
22-
new ApiError(ms.Key, error.ErrorMessage)) ?? Array.Empty<ApiError>())
22+
new ApiError(ms.Key, error.ErrorMessage)) ?? [])
2323
.ToArray();
2424

2525
// Create a standardized API response using the HTTP context.

0 commit comments

Comments
 (0)