Skip to content

Commit ba712b6

Browse files
authored
Update XpsDocument.cs (#8387)
1 parent bf63abf commit ba712b6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsDocument.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,7 @@ public ReadOnlyCollection<XpsDigitalSignature> Signatures
252252
// This list maintains a reference to _signatures so its enumerator will adapt
253253
// as _signatures is updated. Therefore, we need not regenerate it when _signatures
254254
// is modified.
255-
if (_reachSignatureList == null)
256-
{
257-
_reachSignatureList = new ReadOnlyCollection<XpsDigitalSignature>(_reachSignatures);
258-
}
259-
260-
return _reachSignatureList;
255+
return _reachSignatureList ??= new ReadOnlyCollection<XpsDigitalSignature>(_reachSignatures);
261256
}
262257
}
263258

0 commit comments

Comments
 (0)