Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validation for progressReporter and improve map insertion
- Added validation to ensure that the `progressReporter` function is not null in the constructors of `CompletionOnlyProgressSink` and `PreIndexedPackageCatalogProgressSink`. - If `progressReporter` is null, an `E_INVALIDARG` exception is thrown. - Modified the insertion of the default weight for `AppInstaller::ProgressType::Percent` in `PreIndexedPackageCatalogProgressSink` to use `insert_or_assign` instead of direct assignment for better robustness.
- Loading branch information