Skip to content

Commit

Permalink
Addressing warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Psichorex committed Jan 19, 2024
1 parent f896a37 commit 5f7cdae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Lombiq.Hosting.MediaTheme.Bridge/Manifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
Version = "0.0.1",
Description = "Provides the processing logic for the Media Theme.",
Category = "Hosting",
Dependencies = new[] { "OrchardCore.Deployment", "OrchardCore.Media" }
Dependencies = ["OrchardCore.Deployment", "OrchardCore.Media"]
)]
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public async Task InvokeAsync(HttpContext context)
}

context.Response.StatusCode = 404;
context.Response.Headers.Add("Content-Length", "0");
context.Response.Headers.Append("Content-Length", "0");
await context.Response.Body.FlushAsync(context.RequestAborted);
context.Abort();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public IEnumerable<IFeatureInfo> GetFeatures(string[] featureIdsToLoad)
if (featureIdsToLoad.Contains(FeatureNames.MediaTheme))
{
var baseThemeId = GetBaseThemeId();
if (!string.IsNullOrEmpty(baseThemeId)) featureIdsToLoad = featureIdsToLoad.Append(baseThemeId).ToArray();
if (!string.IsNullOrEmpty(baseThemeId)) featureIdsToLoad = [.. featureIdsToLoad, baseThemeId];
}

return _decorated.GetFeatures(featureIdsToLoad);
Expand Down
2 changes: 1 addition & 1 deletion Lombiq.Hosting.MediaTheme/Manifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
Version = "0.0.1",
Description = "It allows developers to host their themes in the Orchard Core Media Library, including templates and assets.",
Category = "Hosting",
Dependencies = new[] { MediaThemeBridge }
Dependencies = [MediaThemeBridge]
)]

0 comments on commit 5f7cdae

Please sign in to comment.