Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg: lib: robustify self.path initialisation for cockpit.location
Typescript reports an error for the original `[].concat(self.path)`, self.path is initialised using this function so it can be undefined. The code used to transparently work with undefined as `pop()` would drop the undefined array item. To make this more robust however explicitly handle `undefined` as this also helps with porting the code to Typescript.
- Loading branch information