Skip to content

Commit c65fc00

Browse files
committed
Removed unnecessary fail fast
1 parent c679357 commit c65fc00

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Files.App/Utils/Storage/Helpers/SyncRootHelpers.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

44
using Microsoft.Win32;
55
using System.Runtime.CompilerServices;
6-
using System.Runtime.InteropServices;
76
using Windows.Win32;
8-
using Windows.Win32.Foundation;
97
using Windows.Win32.System.Com;
108
using Windows.Win32.System.WinRT;
119
using WinRT;
@@ -32,7 +30,7 @@ private static unsafe (bool Success, ulong Capacity, ulong Used) GetSyncRootQuot
3230
null,
3331
CLSCTX.CLSCTX_LOCAL_SERVER,
3432
(Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IStorageProviderStatusUISourceFactory.Guid)),
35-
(void**)pStorageProviderStatusUISourceFactory.GetAddressOf()).ThrowOnFailure();
33+
(void**)pStorageProviderStatusUISourceFactory.GetAddressOf());
3634
if (hr.Failed)
3735
return (false, 0, 0);
3836

0 commit comments

Comments
 (0)