Skip to content

Commit 0dae90f

Browse files
committed
Couldn't hold myself - I hate auxiliary variables living more time than strictly needed. :)
1 parent 1405db6 commit 0dae90f

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Source/ModuleManager/ModuleManager.cs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,14 @@ internal void Awake()
148148
}
149149
}
150150

151-
bool foolsDay = (DateTime.Now.Month == 4 && DateTime.Now.Day == 1);
152-
bool catDay = (DateTime.Now.Month == 2 && DateTime.Now.Day == 22);
153-
nyan = foolsDay
154-
|| Environment.GetCommandLineArgs().Contains("-nyan-nyan");
155-
156-
nCats = catDay
157-
|| Environment.GetCommandLineArgs().Contains("-ncats");
158-
151+
{
152+
bool foolsDay = (DateTime.Now.Month == 4 && DateTime.Now.Day == 1);
153+
bool catDay = (DateTime.Now.Month == 2 && DateTime.Now.Day == 22);
154+
nyan = foolsDay || Environment.GetCommandLineArgs().Contains("-nyan-nyan");
155+
nCats = catDay || Environment.GetCommandLineArgs().Contains("-ncats");
156+
}
159157
dumpPostPatch = Environment.GetCommandLineArgs().Contains("-mm-dump");
160-
161158
DontCopyLogs = Environment.GetCommandLineArgs().Contains("-mm-dont-copy-logs");
162-
163159
IgnoreCache = Environment.GetCommandLineArgs().Contains("-ignore-cache");
164160

165161
loadedInScene = true;

0 commit comments

Comments
 (0)