Skip to content

Commit

Permalink
Polishment
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaliumhexacyanoferrat committed Jan 4, 2024
1 parent 5b21982 commit bdd0872
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions Modules/Reflection/Adjustments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ namespace GenHTTP.Modules.Reflection
internal static class Adjustments
{

/// <summary>
/// Allows to chain the execution of the given adjustments into
/// the given response builder.
/// </summary>
/// <param name="builder">The response builder to be adjusted</param>
/// <param name="adjustments">The adjustments to be executed (if any)</param>
/// <returns>The response builder to be chained</returns>
internal static IResponseBuilder Adjust(this IResponseBuilder builder, Action<IResponseBuilder>? adjustments)
{
if (adjustments != null)
{
adjustments(builder);
}
adjustments?.Invoke(builder);

return builder;
}
Expand Down
6 changes: 3 additions & 3 deletions Modules/Reflection/GenHTTP.Modules.Reflection.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>CS1591,CS1587,CS1572,CS1573</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>CS1591,CS1587,CS1572,CS1573</NoWarn>

<PackageIcon>icon.png</PackageIcon>

Expand All @@ -43,7 +43,7 @@

<ProjectReference Include="..\..\API\GenHTTP.Api.csproj" />

<ProjectReference Include="..\IO\GenHTTP.Modules.IO.csproj" />
<ProjectReference Include="..\IO\GenHTTP.Modules.IO.csproj" />
<ProjectReference Include="..\Conversion\GenHTTP.Modules.Conversion.csproj" />

<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
Expand Down

0 comments on commit bdd0872

Please sign in to comment.