Fix IDE0074
This commit is contained in:
committed by
Pavel Penev
parent
cbd0583289
commit
bd2b3d9793
@@ -45,8 +45,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (r.IsTraitDisabled)
|
||||
continue;
|
||||
|
||||
if (acceptedReplacements == null)
|
||||
acceptedReplacements = new HashSet<string>();
|
||||
acceptedReplacements ??= new HashSet<string>();
|
||||
|
||||
acceptedReplacements.UnionWith(r.Info.Types);
|
||||
}
|
||||
|
||||
@@ -84,8 +84,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
void INotifyLineBuildSegmentsChanged.SegmentAdded(Actor self, Actor segment)
|
||||
{
|
||||
if (segments == null)
|
||||
segments = new HashSet<Actor>();
|
||||
segments ??= new HashSet<Actor>();
|
||||
|
||||
segments.Add(segment);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user