From 07f1d5c7284218fdba28f8696436a0279bbf0d97 Mon Sep 17 00:00:00 2001 From: Thomas Rory Gummerson Date: Thu, 9 Nov 2017 14:54:30 +0100 Subject: [PATCH] Final newline fix, project should now be newline-independent --- utils/listFile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/listFile.js b/utils/listFile.js index 2e175f4..890dcd6 100644 --- a/utils/listFile.js +++ b/utils/listFile.js @@ -1,5 +1,7 @@ 'use strict'; +const { EOL } = require('os'); + const fs = require('fs-extra'); const removeFromArray = require('./removeFromArray'); @@ -39,7 +41,7 @@ function removeFromList (domain, outPort) { jsonFile = JSON.stringify(jsonBuffer, null, '\t'); fs.writeFileSync(listFilePath(), jsonFile); } - else console.log("\nNo servers were created using `up` yet.\n"); + else console.log(EOL + "No servers were created using `up` yet." + EOL); } function readServers () {