Bug 1207499 - Part 13: Remove use of expression closure from xpcom/. r=froydnj

This commit is contained in:
Tooru Fujisawa 2015-09-23 18:42:20 +09:00
parent bcad385ca3
commit a0f1cb9a7b

View File

@ -109,7 +109,9 @@ function setupTestDir(testDir, relative) {
}
function createSpaces(dirs, files, links) {
function longest(a, b) a.length > b.length ? a : b;
function longest(a, b) {
return a.length > b.length ? a : b;
}
return dirs.concat(files, links).reduce(longest, "").replace(/./g, " ");
}