Use 'new' expression in places where the type is evident for the engine (#1415)

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
DrSmugleaf
2020-11-26 00:16:55 +01:00
committed by GitHub
parent e82a83223f
commit b8e5b47e7a
242 changed files with 1171 additions and 1174 deletions

View File

@@ -20,7 +20,7 @@ namespace Robust.Shared.Serialization
[Dependency] private readonly IReflectionManager _reflectionManager = default!;
[Dependency] private readonly IRobustMappedStringSerializer _mappedStringSerializer = default!;
private readonly Lazy<ISawmill> _lazyLogSzr = new Lazy<ISawmill>(() => Logger.GetSawmill("szr"));
private readonly Lazy<ISawmill> _lazyLogSzr = new(() => Logger.GetSawmill("szr"));
private ISawmill LogSzr => _lazyLogSzr.Value;
@@ -36,7 +36,7 @@ namespace Robust.Shared.Serialization
#region Statistics
private readonly object _statsLock = new object();
private readonly object _statsLock = new();
public static long LargestObjectSerializedBytes { get; private set; }