From bfd4b21d3d57ed01cc4efe1cb434bd7390c60428 Mon Sep 17 00:00:00 2001 From: chrisgarber Date: Tue, 20 Sep 2022 16:15:09 -0400 Subject: [PATCH] fix: package.json getting postended with "null" - since the result of this function gets added to a string, if it's null, my package.json ends up with a "null" at the end. - by returning an empty string nothing will be added as an EOL character --- src/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.js b/src/helpers.js index cecc5ba..b3086d4 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -154,7 +154,7 @@ async function detect_newline_at_eof(path) { return matches[0]; } - return null; + return ''; } function sleep(ms) {