refactor(cloudfunc) concat -> array spread

This commit is contained in:
coderaiser 2019-01-26 17:44:39 +02:00
parent f223cd7959
commit 79a08a36fa

View file

@ -69,7 +69,7 @@ function getPathLink(url, prefix, template) {
.split('/')
.slice(1, -1);
const allNames = ['/'].concat(names);
const allNames = ['/', ...names];
const length = allNames.length - 1;
let path = '/';