Skip to content

Commit

Permalink
Couple of cleanups from .NET 8 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
FenPhoenix committed Mar 19, 2024
1 parent b3e5699 commit 97aecbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions AngelLoader/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1971,9 +1971,6 @@ static bool EndsWithLangCode(string fn_orig, string[] langCodes)
return safeReadme;
}

// @ViewBusinessLogic(LoadReadme):
// This logic - or part of it - should actually be in the view, because it deals with the difference between
// HTML and the rest. We shouldn't be assuming HTML is different on this side of the boundary.
internal static void LoadReadme(FanMission fm)
{
string path = "";
Expand Down
2 changes: 1 addition & 1 deletion AngelLoader/Ini/IniCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private static string GetBackupFileName()
return Path.Combine(Paths.Data, Paths.FMDataBakBase + "1");
}

FileInfo? lastWritten = fileInfos.OrderByDescending(static x => x.LastWriteTime).ToArray()[0];
FileInfo lastWritten = fileInfos.OrderByDescending(static x => x.LastWriteTime).ToArray()[0];
string lastWrittenFileNumStr = lastWritten.Name.Substring(Paths.FMDataBakBase.Length);

int newNum = 1;
Expand Down

0 comments on commit 97aecbe

Please sign in to comment.