mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-30 19:32:57 +01:00
More code cleanups
This commit is contained in:
parent
670a53258e
commit
f1e668bad8
@@ -59,15 +59,15 @@ namespace MediaBrowser.Common.Serialization
|
||||
return ServiceStack.Text.JsonSerializer.DeserializeFromStream(type, stream);
|
||||
}
|
||||
|
||||
private static bool IsConfigured;
|
||||
private static bool _isConfigured;
|
||||
private static void Configure()
|
||||
{
|
||||
if (!IsConfigured)
|
||||
if (!_isConfigured)
|
||||
{
|
||||
ServiceStack.Text.JsConfig.DateHandler = ServiceStack.Text.JsonDateHandler.ISO8601;
|
||||
ServiceStack.Text.JsConfig.ExcludeTypeInfo = true;
|
||||
ServiceStack.Text.JsConfig.IncludeNullValues = false;
|
||||
IsConfigured = true;
|
||||
_isConfigured = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user