未验证 提交 8a6dc70f 编写于 作者: C CyrusNajmabadi 提交者: GitHub

Update src/Workspaces/Core/Portable/Storage/AbstractPersistentStorageService.cs

Co-Authored-By: NSam Harwell <sam@tunnelvisionlabs.com>
上级 7fbf3b30
......@@ -213,7 +213,7 @@ public static IChecksummedPersistentStorage AddReferenceCountToAndCreateWrapper(
{
// This should only be called from a caller that has a non-null storage that it
// already has a reference on. So .TryAddReference cannot fail.
return new PersistentStorageReferenceCountedDisposableWrapper(storage.TryAddReference() ?? throw new InvalidOperationException());
return new PersistentStorageReferenceCountedDisposableWrapper(storage.TryAddReference() ?? throw ExceptionUtilities.Unreachable);
}
public void Dispose()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册