Skip to content

Commit 93de8d4

Browse files
committed
Cleanup
1 parent 853b82a commit 93de8d4

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/OrchardCoreContrib.PoExtractor.Liquid/LiquidProjectProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void Process(string path, string basePath, LocalizableStringCollection lo
5757
}
5858
}
5959

60-
private void ProcessTemplate(IFluidTemplate template, ExtractingLiquidWalker visitor, string path)
60+
private static void ProcessTemplate(IFluidTemplate template, ExtractingLiquidWalker visitor, string path)
6161
{
6262
if (template is CompositeFluidTemplate compositeTemplate)
6363
{

src/OrchardCoreContrib.PoExtractor/PoWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class PoWriter : IDisposable
1212
{
1313
public const string PortaleObjectTemplateExtension = ".pot";
1414

15-
private readonly TextWriter _writer;
15+
private readonly StreamWriter _writer;
1616

1717
/// <summary>
1818
/// Creates a new instance of the <see cref="PoWriter"/>, that writes records to the file

src/OrchardCoreContrib.PoExtractor/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static void Main(string[] args)
8989
{
9090
var projectPath = Path.GetDirectoryName(projectFile);
9191
var projectBasePath = Path.GetDirectoryName(projectPath) + Path.DirectorySeparatorChar;
92-
var projectRelativePath = projectPath.Substring(projectBasePath.Length);
92+
var projectRelativePath = projectPath[projectBasePath.Length..];
9393

9494
if (IgnoredProject.ToList().Any(p => projectRelativePath.StartsWith(p)))
9595
{

test/OrchardCoreContrib.PoExtractor.Core.Tests/ErrorMessageAnnotationStringExtractorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void ExtractLocalizedStringsFromDataAnnotations()
2222
.ToList();
2323

2424
Assert.NotEmpty(localizedStrings);
25-
Assert.Equal(6, localizedStrings.Count());
25+
Assert.Equal(6, localizedStrings.Count);
2626
Assert.Contains(localizedStrings, s => s == "The username is required.");
2727
}
2828

0 commit comments

Comments
 (0)