Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Discard ServiceProvider in AddSingleton delegate
Browse files Browse the repository at this point in the history
Migration from DCS to D#+ made this redundant
  • Loading branch information
oliverbooth committed Apr 7, 2022
1 parent 16e2369 commit 3675db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BrackeysBot/Plugins/SimplePluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ private void SetupPluginServices(MonoPlugin instance, PluginInfo pluginInfo, Typ
if (intentsAttribute is not null)
intents = intentsAttribute.Intents;

serviceCollection.AddSingleton(provider =>
serviceCollection.AddSingleton(_ =>
{
var client = new DiscordClient(new DiscordConfiguration
{
Expand Down

0 comments on commit 3675db4

Please sign in to comment.