From a3a77180de58bdceeb78c452b1598e7ac9ff57cb Mon Sep 17 00:00:00 2001 From: joshaber Date: Thu, 3 Dec 2015 09:33:30 -0500 Subject: [PATCH] More helpful type annotations. --- src/git-repository-async.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/git-repository-async.js b/src/git-repository-async.js index 131b1b51c..705f98870 100644 --- a/src/git-repository-async.js +++ b/src/git-repository-async.js @@ -412,10 +412,10 @@ export default class GitRepositoryAsync { options.pathspec = _path return Git.Diff.treeToWorkdir(repo, tree, options) }) - .then(diff => diff.patches()) // :: Array - .then(patches => Promise.all(patches.map(p => p.hunks()))) // :: Array> - .then(hunks => Promise.all(_.flatten(hunks).map(h => h.lines()))) // :: Array> - .then(lines => { + .then(diff => diff.patches()) + .then(patches => Promise.all(patches.map(p => p.hunks()))) // patches :: Array + .then(hunks => Promise.all(_.flatten(hunks).map(h => h.lines()))) // hunks :: Array> + .then(lines => { // lines :: Array> const stats = {added: 0, deleted: 0} for (const line of _.flatten(lines)) { const origin = line.origin()