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:
parent
de16ba7024
commit
9c08612c04
1 changed files with 3 additions and 0 deletions
|
@ -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) =>
|
||||||
|
|
Loading…
Add table
Reference in a new issue