1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Use const where appropriate

The value of a const field is computed at compile time and stored in the metadata, which improves run-time performance when it is compared to a static readonly field.
This commit is contained in:
Qstick
2023-01-09 21:36:04 -06:00
parent b4d8f0c311
commit 42e45f93ac
5 changed files with 12 additions and 14 deletions
@@ -13,7 +13,7 @@ namespace Sonarr.Http.ClientSchema
{
public static class SchemaBuilder
{
private static readonly string PRIVATE_VALUE = "********";
private const string PRIVATE_VALUE = "********";
private static Dictionary<Type, FieldMapping[]> _mappings = new Dictionary<Type, FieldMapping[]>();
public static List<Field> ToSchema(object model)