File tree 2 files changed +7
-33
lines changed
2 files changed +7
-33
lines changed Original file line number Diff line number Diff line change @@ -485,31 +485,10 @@ namespace Microsoft::CodePush::ReactNative
485
485
auto configuration{ CodePushConfig::Current ().GetConfiguration () };
486
486
if (isRunningBinaryVersion)
487
487
{
488
- hstring binaryHash;
489
- try
490
- {
491
- auto errorMessage{ L" Error: Package hashing is currently unimplemented. Binary hash was not obtained." };
492
- auto error{ hresult_error (E_NOTIMPL, errorMessage) };
493
- CodePushUtils::Log (error);
494
- throw error;
495
- }
496
- catch (...)
497
- {
498
- CodePushUtils::Log (L" Error obtaining hash for binary contents." );
499
- promise.Resolve (configuration);
500
- co_return ;
501
- }
502
-
503
- if (binaryHash.empty ())
504
- {
505
- // The hash was not generated either due to a previous unknown error or the fact that
506
- // the React Native assets were not bundled in the binary (e.g. during release)
507
- // builds.
508
- promise.Resolve (configuration);
509
- co_return ;
510
- }
511
-
512
- configuration.Insert (PackageHashKey, JsonValue::CreateStringValue (binaryHash));
488
+ auto errorMessage{ L" Error: Package hashing is currently unimplemented. Binary hash was not obtained." };
489
+ auto error{ hresult_error (E_NOTIMPL, errorMessage) };
490
+ CodePushUtils::Log (error);
491
+ CodePushUtils::Log (L" Error obtaining hash for binary contents." );
513
492
promise.Resolve (configuration);
514
493
co_return ;
515
494
}
Original file line number Diff line number Diff line change @@ -172,14 +172,9 @@ namespace Microsoft::CodePush::ReactNative
172
172
173
173
if (needToVerifyHash)
174
174
{
175
- try
176
- {
177
- auto errorMessage{ L" Error: package content verification is not currently supported." };
178
- hresult_error error{ E_NOTIMPL, errorMessage };
179
- CodePushUtils::Log (error);
180
- throw error;
181
- }
182
- catch (...) {}
175
+ auto errorMessage{ L" Error: package content verification is not currently supported." };
176
+ hresult_error error{ E_NOTIMPL, errorMessage };
177
+ CodePushUtils::Log (error);
183
178
}
184
179
}
185
180
}
You can’t perform that action at this time.
0 commit comments