mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-03 00:47:21 +02:00
core: hide deprecation warning (#9526)
This commit is contained in:
@@ -69,6 +69,8 @@ namespace Jackett.Server
|
|||||||
|
|
||||||
private static void InitAutomapper()
|
private static void InitAutomapper()
|
||||||
{
|
{
|
||||||
|
#pragma warning disable 612, 618
|
||||||
|
// TODO: fix deprecation warning (remove #pragma to see the build warning)
|
||||||
Mapper.Initialize(cfg =>
|
Mapper.Initialize(cfg =>
|
||||||
{
|
{
|
||||||
cfg.CreateMap<WebClientByteResult, WebClientStringResult>().ForMember(x => x.Content, opt => opt.Ignore()).AfterMap((be, str) =>
|
cfg.CreateMap<WebClientByteResult, WebClientStringResult>().ForMember(x => x.Content, opt => opt.Ignore()).AfterMap((be, str) =>
|
||||||
@@ -102,6 +104,7 @@ namespace Jackett.Server
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
#pragma warning restore 612, 618
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void SetupLogging(ContainerBuilder builder) =>
|
public static void SetupLogging(ContainerBuilder builder) =>
|
||||||
|
Reference in New Issue
Block a user