feat: added comments from copilot review

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
This commit is contained in:
Marcelo Fukumoto
2026-07-07 13:37:15 +02:00
parent 107e44bd4b
commit a4299a9597
4 changed files with 22 additions and 9 deletions
@@ -251,7 +251,7 @@ export default class ForkliftPlan extends HarvesterResource {
* Use foreground propagation to ensure children are deleted before the parent.
*/
remove(opt = {}) {
opt.params = { propagationPolicy: 'Foreground' };
opt.params = { ...(opt.params || {}), propagationPolicy: 'Foreground' };
return this._remove(opt);
}
@@ -29,7 +29,7 @@ export default class ForkliftProvider extends HarvesterResource {
* Use foreground propagation to ensure children are deleted before the parent.
*/
remove(opt = {}) {
opt.params = { propagationPolicy: 'Foreground' };
opt.params = { ...(opt.params || {}), propagationPolicy: 'Foreground' };
return this._remove(opt);
}