Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamco committed Mar 31, 2024
1 parent 853b82a commit 93de8d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void Process(string path, string basePath, LocalizableStringCollection lo
}
}

private void ProcessTemplate(IFluidTemplate template, ExtractingLiquidWalker visitor, string path)
private static void ProcessTemplate(IFluidTemplate template, ExtractingLiquidWalker visitor, string path)
{
if (template is CompositeFluidTemplate compositeTemplate)
{
Expand Down
2 changes: 1 addition & 1 deletion src/OrchardCoreContrib.PoExtractor/PoWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class PoWriter : IDisposable
{
public const string PortaleObjectTemplateExtension = ".pot";

private readonly TextWriter _writer;
private readonly StreamWriter _writer;

/// <summary>
/// Creates a new instance of the <see cref="PoWriter"/>, that writes records to the file
Expand Down
2 changes: 1 addition & 1 deletion src/OrchardCoreContrib.PoExtractor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static void Main(string[] args)
{
var projectPath = Path.GetDirectoryName(projectFile);
var projectBasePath = Path.GetDirectoryName(projectPath) + Path.DirectorySeparatorChar;
var projectRelativePath = projectPath.Substring(projectBasePath.Length);
var projectRelativePath = projectPath[projectBasePath.Length..];

if (IgnoredProject.ToList().Any(p => projectRelativePath.StartsWith(p)))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void ExtractLocalizedStringsFromDataAnnotations()
.ToList();

Assert.NotEmpty(localizedStrings);
Assert.Equal(6, localizedStrings.Count());
Assert.Equal(6, localizedStrings.Count);
Assert.Contains(localizedStrings, s => s == "The username is required.");
}

Expand Down

0 comments on commit 93de8d4

Please sign in to comment.