mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-11-04 08:34:27 -05:00
dev: small cleanup, removed qodana
This commit is contained in:
@@ -20,14 +20,6 @@ public static class DryIocExtensions
|
||||
return container;
|
||||
}
|
||||
|
||||
public static IContainer AddSingleton<TSvc, TImpl>(this IContainer container, Func<IResolverContext, TSvc> factory)
|
||||
where TImpl : TSvc
|
||||
{
|
||||
container.RegisterDelegate(factory, Reuse.Singleton);
|
||||
|
||||
return container;
|
||||
}
|
||||
|
||||
public static IContainer AddSingleton<TImpl>(this IContainer container)
|
||||
{
|
||||
container.Register<TImpl>(Reuse.Singleton);
|
||||
@@ -34,7 +34,7 @@ public sealed class MedusaNinjectIocModule : IIocModule, IDisposable
|
||||
if (isLoaded)
|
||||
return;
|
||||
|
||||
foreach (var (type, data) in _types)
|
||||
foreach (var (type, _) in _types)
|
||||
{
|
||||
var attribute = type.GetCustomAttribute<svcAttribute>()!;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user