mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-21 16:58:37 +00:00
C# 7.0 syntax sugars
This commit is contained in:
@@ -11,11 +11,7 @@ namespace ArchiSteamFarm {
|
||||
private readonly Bot Bot;
|
||||
|
||||
internal BotStatusForm(Bot bot) {
|
||||
if (bot == null) {
|
||||
throw new ArgumentNullException(nameof(bot));
|
||||
}
|
||||
|
||||
Bot = bot;
|
||||
Bot = bot ?? throw new ArgumentNullException(nameof(bot));
|
||||
|
||||
BotForms[bot.BotName] = this;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user