Skip to content

Commit bb3f4f7

Browse files
authored
Simplify: use throw; to rethrow winrt::hresult_error without modification
1 parent e824a53 commit bb3f4f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vnext/Microsoft.ReactNative/Utils/LocalBundleReader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ LocalBundleReader::LoadBundleAsync(const std::wstring bundleUri) {
9696

9797
co_return co_await winrt::Windows::Storage::FileIO::ReadBufferAsync(file);
9898
}
99-
catch (winrt::hresult_error const &e) {
100-
throw winrt::hresult_error(e.code(), e.message());
99+
catch (winrt::hresult_error const &) {
100+
throw;
101101
}
102102
}
103103

0 commit comments

Comments
 (0)