mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1207499 - Part 13: Remove use of expression closure from xpcom/. r=froydnj
This commit is contained in:
parent
bcad385ca3
commit
a0f1cb9a7b
@ -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, " ");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user