Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros committed Nov 14, 2024
1 parent 6772f53 commit 56644d0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/OrchardCore.Modules/OrchardCore.Liquid/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System.Globalization;
using System.Numerics;
using System.Text.Json;
using System;
using System.Text.Json.Dynamic;
using System.Text.Json.Nodes;
using Fluid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Globalization;
using System.Text.Json.Dynamic;
using Fluid;
using Fluid.Values;
using Microsoft.AspNetCore.Html;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override bool Equals(FluidValue other)

public override string ToStringValue() => Culture.Name;

public async override ValueTask WriteToAsync(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
public override async ValueTask WriteToAsync(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
=> await writer.WriteAsync(Culture.Name);

public override ValueTask<FluidValue> GetValueAsync(string name, TemplateContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public override bool Equals(FluidValue other)

public override string ToStringValue() => _hostEnvironment.EnvironmentName;

public async override ValueTask WriteToAsync(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
public override async ValueTask WriteToAsync(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
=> await writer.WriteAsync(ToStringValue());

public override ValueTask<FluidValue> GetValueAsync(string name, TemplateContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public override bool Equals(FluidValue other)

public override string ToStringValue() => "Request";

public async override ValueTask WriteToAsync(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
public override async ValueTask WriteToAsync(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
=> await writer.WriteAsync(ToStringValue());

public override ValueTask<FluidValue> GetValueAsync(string name, TemplateContext context)
Expand Down

0 comments on commit 56644d0

Please sign in to comment.