Skip to content

Commit 0880978

Browse files
Removed unnecessary ToUpper() call on path checks, added random missing space
1 parent aa4344b commit 0880978

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MSFS Layout Generator/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ static void Main(string[] layoutPaths)
3636
content.Size = new FileInfo(file).Length;
3737
content.Date = new FileInfo(file).LastWriteTimeUtc.ToFileTimeUtc();
3838

39-
if (!relativePath.ToUpper().StartsWith("_CVT_",StringComparison.OrdinalIgnoreCase) && !string.Equals(relativePath, "business.json") && !string.Equals(relativePath, "layout.json") && !string.Equals(relativePath, "manifest.json"))
39+
if (!relativePath.StartsWith("_CVT_", StringComparison.OrdinalIgnoreCase) && !string.Equals(relativePath, "business.json") && !string.Equals(relativePath, "layout.json") && !string.Equals(relativePath, "manifest.json"))
4040
{
4141
layout.Content.Add(content);
4242
}
4343
}
4444

45-
if(layout.Content.Count() == 0)
45+
if (layout.Content.Count() == 0)
4646
{
4747
Utilities.Log("No files were found in the folder containing \"" + layoutPath + "\". The layout.json will not be updated.");
4848
}

0 commit comments

Comments
 (0)