mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-02 00:32:55 +02:00
core: hide deprecation warning (#9526)
This commit is contained in:
@@ -69,6 +69,8 @@ namespace Jackett.Server
|
||||
|
||||
private static void InitAutomapper()
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
// TODO: fix deprecation warning (remove #pragma to see the build warning)
|
||||
Mapper.Initialize(cfg =>
|
||||
{
|
||||
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) =>
|
||||
|
Reference in New Issue
Block a user