From c9da309f4b10e3277e6763cfa74405c47d338028 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Tue, 28 Mar 2017 09:41:25 +0200 Subject: [PATCH] formatting --- src/util.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util.ts b/src/util.ts index e9073d7..bb4f52f 100644 --- a/src/util.ts +++ b/src/util.ts @@ -4,7 +4,7 @@ import { WebApi, getBasicHandler } from 'vso-node-api/WebApi'; import { IGalleryApi } from 'vso-node-api/GalleryApi'; import * as denodeify from 'denodeify'; -const __read = denodeify<_read.Options,string>(_read); +const __read = denodeify<_read.Options, string>(_read); export function read(prompt: string, options: _read.Options = {}): Promise { return __read(assign({ prompt }, options)); } @@ -19,7 +19,7 @@ export function normalize(path: string): string { return path.replace(/\\/g, '/'); } -function chain2(a: A, b: B[], fn: (a: A, b: B)=>Promise, index = 0): Promise { +function chain2(a: A, b: B[], fn: (a: A, b: B) => Promise, index = 0): Promise { if (index >= b.length) { return Promise.resolve(a); } @@ -27,7 +27,7 @@ function chain2(a: A, b: B[], fn: (a: A, b: B)=>Promise, index = 0): Pro return fn(a, b[index]).then(a => chain2(a, b, fn, index + 1)); } -export function chain(initial: T, processors: P[], process: (a: T, b: P)=>Promise): Promise { +export function chain(initial: T, processors: P[], process: (a: T, b: P) => Promise): Promise { return chain2(initial, processors, process); }