all: replace loop with single append Upstream-commit: f299335e6e100426f3dfb6707b27044f1fdcf12c Component: engine