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

Commit

Permalink
Return empty IPlugin array segment
Browse files Browse the repository at this point in the history
Rather than empty MonoPlugin array segment
  • Loading branch information
oliverbooth committed Mar 13, 2022
1 parent 0681a9f commit 78c7a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BrackeysBot/Plugins/SimplePluginManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -304,7 +304,7 @@ public IReadOnlyList<IPlugin> LoadPlugins()
catch (IOException exception)
{
Logger.Warn(exception, $"The plugin directory '{PluginDirectory.FullName}' could not be created.");
return ArraySegment<MonoPlugin>.Empty;
return ArraySegment<IPlugin>.Empty;
}

var plugins = new List<IPlugin>();
Expand Down

0 comments on commit 78c7a82

Please sign in to comment.