Final Rider inspections

This commit is contained in:
Archi
2022-12-15 19:23:46 +01:00
parent c9cae6e258
commit fc20b6cfc4
12 changed files with 35 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ internal static class AprilFools {
internal static void Init(object? state = null) {
DateTime now = DateTime.Now;
if ((now.Month == 4) && (now.Day == 1)) {
if (now is { Month: 4, Day: 1 }) {
try {
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.CreateSpecificCulture(SharedInfo.LolcatCultureName);
} catch (Exception e) {