diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.ts b/src/util.ts index 2292820..6ab90ce 100644 --- a/src/util.ts +++ b/src/util.ts @@ -2,8 +2,8 @@ export function mapPromises<T>(promises: {[key: string]: Promise<T>}): Promise<{[key: string]: T}> { - var p: Promise<void>[] = [] - var ret: {[key: string]: T} = {} + var p: Promise<void>[] = []; + var ret: {[key: string]: T} = {}; _.forOwn(promises, (v, k) => { p.push(v.then(r => {ret[k] = r;})); |