From 06185d5f7d026f929f2a4333b0de3a6d29638b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Sat, 17 Aug 2024 22:19:17 +0200 Subject: [PATCH] Misc --- .../ExamplePlugin.cs | 2 +- .../SteamTokenDumperPlugin.cs | 4 ++-- ArchiSteamFarm.sln.DotSettings | 24 +++++++++++-------- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs b/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs index 365eaec38..f0386e83b 100644 --- a/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs +++ b/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs @@ -174,7 +174,7 @@ internal sealed class ExamplePlugin : IASF, IBot, IBotCommand2, IBotConnection, // If this message doesn't come from one of our bots, we can reply to the user in some pre-defined way bot.ArchiLogger.LogGenericTrace("Hey boss, we got some unknown message here!"); - return Task.FromResult((string?) "I didn't get that, did you mean to use a command?"); + return Task.FromResult("I didn't get that, did you mean to use a command?"); } // This method is called when bot receives a trade offer that ASF isn't willing to accept (ignored and rejected trades) diff --git a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs index 173bee898..04cde147d 100644 --- a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs +++ b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs @@ -196,7 +196,7 @@ internal sealed class SteamTokenDumperPlugin : OfficialPlugin, IASF, IBot, IBotC break; } - return Task.FromResult((string?) null); + return Task.FromResult(null); } public async Task OnBotDestroy(Bot bot) { @@ -255,7 +255,7 @@ internal sealed class SteamTokenDumperPlugin : OfficialPlugin, IASF, IBot, IBotC return Task.CompletedTask; } - public Task?> OnBotSteamHandlersInit(Bot bot) => Task.FromResult((IReadOnlyCollection?) null); + public Task?> OnBotSteamHandlersInit(Bot bot) => Task.FromResult?>(null); public override Task OnLoaded() { Utilities.WarnAboutIncompleteTranslation(Strings.ResourceManager); diff --git a/ArchiSteamFarm.sln.DotSettings b/ArchiSteamFarm.sln.DotSettings index 0f899b385..d584f31f6 100644 --- a/ArchiSteamFarm.sln.DotSettings +++ b/ArchiSteamFarm.sln.DotSettings @@ -166,6 +166,9 @@ SUGGESTION SUGGESTION SUGGESTION + SUGGESTION + SUGGESTION + SUGGESTION SUGGESTION SUGGESTION SUGGESTION @@ -185,7 +188,7 @@ SUGGESTION SUGGESTION - WARNING + DO_NOT_SHOW WARNING WARNING WARNING @@ -252,10 +255,11 @@ WARNING WARNING DO_NOT_SHOW + WARNING WARNING SUGGESTION - - True + SUGGESTION + SUGGESTION SUGGESTION @@ -524,19 +528,19 @@ False <?xml version="1.0" encoding="utf-16"?> <Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> - <TypePattern DisplayName="Non-reorderable types" Priority="99999999"> + <TypePattern DisplayName="Non-reorderable types" Priority="99999999"> <TypePattern.Match> <Or> <And> - <Kind Is="Interface" /> + <Kind Is="Interface" /> <Or> - <HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" /> - <HasAttribute Name="System.Runtime.InteropServices.ComImport" /> + <HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" /> + <HasAttribute Name="System.Runtime.InteropServices.ComImport" /> </Or> </And> - <Kind Is="Struct" /> - <HasAttribute Name="System.Runtime.InteropServices.StructLayoutAttribute" /> - <HasAttribute Name="JetBrains.Annotations.NoReorderAttribute" /> + <Kind Is="Struct" /> + <HasAttribute Name="System.Runtime.InteropServices.StructLayoutAttribute" /> + <HasAttribute Name="JetBrains.Annotations.NoReorderAttribute" /> </Or> </TypePattern.Match> </TypePattern>