mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
R# cleanup, small code improvements
This commit is contained in:
@@ -43,7 +43,7 @@ namespace ArchiSteamFarm {
|
||||
internal static bool ShutdownSequenceInitialized { get; private set; }
|
||||
|
||||
// We need to keep this one assigned and not calculated on-demand
|
||||
private static readonly string ProcessFileName = Process.GetCurrentProcess().MainModule.FileName;
|
||||
private static readonly string ProcessFileName = Process.GetCurrentProcess().MainModule?.FileName ?? throw new ArgumentNullException(nameof(ProcessFileName));
|
||||
|
||||
private static readonly TaskCompletionSource<byte> ShutdownResetEvent = new TaskCompletionSource<byte>();
|
||||
private static bool SystemRequired;
|
||||
@@ -430,7 +430,6 @@ namespace ArchiSteamFarm {
|
||||
|
||||
break;
|
||||
default:
|
||||
|
||||
if (cryptKeyNext) {
|
||||
cryptKeyNext = false;
|
||||
HandleCryptKeyArgument(arg);
|
||||
@@ -459,7 +458,6 @@ namespace ArchiSteamFarm {
|
||||
|
||||
break;
|
||||
default:
|
||||
|
||||
if (pathNext) {
|
||||
pathNext = false;
|
||||
HandlePathArgument(arg);
|
||||
|
||||
Reference in New Issue
Block a user