Remove extension when folder is removed during runtime (#1518)

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2020-11-26 09:40:37 +02:00
1 parent 8739baab5b
commit 4e02e086a9
8 files changed
+228 -34

No files matched your search

+1 -1
View File
@@ -3,6 +3,6 @@
* @param items either one item or an array of items
* @returns a list of items
*/
export function recitfy<T>(items: T | T[]): T[] {
export function rectify<T>(items: T | T[]): T[] {
return Array.isArray(items) ? items : [items];
}