From 18879687812744e7f3ef4cc9d6d779f32c66861c Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 8 Feb 2018 21:47:24 -0800 Subject: [PATCH] do not print table heading when no authors found --- src/cmd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd.js b/src/cmd.js index e764332..369ac8c 100755 --- a/src/cmd.js +++ b/src/cmd.js @@ -164,7 +164,9 @@ async function runThanks (cwd, promptToOpen) { ) } - printTable(authorsSeeking, pkgNamesSeeking, authorsPkgNames, directPkgNames) + if (authorsSeeking.length > 0 || pkgNamesSeeking.length > 0) { + printTable(authorsSeeking, pkgNamesSeeking, authorsPkgNames, directPkgNames) + } if (donateLinks.length && promptToOpen) { const prompt = new PromptConfirm(