Skip to content

Commit

Permalink
Optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
azhuge233 committed Feb 23, 2025
1 parent 15cd0e2 commit 2a444c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EGSFreeGamesNotifier/Services/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ internal ParseResult Parse(string source, List<FreeGameRecord> oldRecords) {
} else _logger.LogDebug(ParseStrings.debugJsonDataNull);

if(result.NotifyRecords.Count > 0)
result.NotifyRecords = result.NotifyRecords.OrderBy(record => record.IsUpcomingPromotion).ToList();
result.NotifyRecords = [.. result.NotifyRecords.OrderBy(record => record.IsUpcomingPromotion)];

_logger.LogDebug($"Done: {ParseStrings.debugParse}");
return result;
Expand Down

0 comments on commit 2a444c9

Please sign in to comment.