1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 14:14:25 +00:00

core: hide deprecation warning (#9526)

This commit is contained in:
Diego Heras 2020-09-14 00:35:48 +02:00 committed by GitHub
parent de16ba7024
commit 9c08612c04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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