Use explicit coercion
This commit is contained in:
parent
76f51ad37c
commit
aa03a04c7f
1 changed files with 3 additions and 3 deletions
|
@ -95,14 +95,14 @@ namespace ts.server {
|
|||
return 0;
|
||||
}
|
||||
|
||||
return Math.max.apply(Math, paths.map(path => {
|
||||
return Math.max(...paths.map(path => {
|
||||
if (host.directoryExists(path)) {
|
||||
return host.getModifiedTime(path);
|
||||
return +host.getModifiedTime(path);
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
}
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
export function mergeMaps(target: MapLike<any>, source: MapLike <any>): void {
|
||||
|
|
Loading…
Reference in a new issue