From 363b93804d48c8851b648b8fdcc464710559eb25 Mon Sep 17 00:00:00 2001
From: Myles Borins <mylesborins@google.com>
Date: Tue, 30 May 2017 12:22:53 -0400
Subject: [PATCH] deps: float patch on npm to fix citgm

This floats https://github.com/npm/npm/pull/16791 onto npm v5.0.0
to fix an edge case that was found in citgm
---
 deps/npm/lib/view.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/deps/npm/lib/view.js b/deps/npm/lib/view.js
index 733cf60e5f1e98..2f06aea624dc03 100644
--- a/deps/npm/lib/view.js
+++ b/deps/npm/lib/view.js
@@ -300,9 +300,7 @@ function printData (data, name, cb) {
   log.disableProgress()
 
   // print directly to stdout to not unnecessarily add blank lines
-  process.stdout.write(msg)
-
-  cb(null, data)
+  process.stdout.write(msg, () => cb(null, data))
 }
 function cleanup (data) {
   if (Array.isArray(data)) {