We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf63abf commit ba712b6Copy full SHA for ba712b6
src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsDocument.cs
@@ -252,12 +252,7 @@ public ReadOnlyCollection<XpsDigitalSignature> Signatures
252
// This list maintains a reference to _signatures so its enumerator will adapt
253
// as _signatures is updated. Therefore, we need not regenerate it when _signatures
254
// is modified.
255
- if (_reachSignatureList == null)
256
- {
257
- _reachSignatureList = new ReadOnlyCollection<XpsDigitalSignature>(_reachSignatures);
258
- }
259
-
260
- return _reachSignatureList;
+ return _reachSignatureList ??= new ReadOnlyCollection<XpsDigitalSignature>(_reachSignatures);
261
}
262
263
0 commit comments