dev: small cleanup, removed qodana

This commit is contained in:
Kwoth
2024-08-05 14:13:16 +00:00
parent dd49d202b7
commit 764babdf06
13 changed files with 49 additions and 80 deletions

View File

@@ -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);

View File

@@ -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>()!;