From 0899f9ae5bcffa1f4b009e5d7d4406977174bedd Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Thu, 7 Feb 2019 19:34:37 -0500 Subject: [PATCH] code format --- app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index ec7f667..1df469c 100755 --- a/app.js +++ b/app.js @@ -331,7 +331,10 @@ app.runOnStartup = function() { if (global.sourcecodeVersion == null && fs.existsSync('.git')) { simpleGit(".").log(["-n 1"], function(err, log) { - if (err) { return console.error('error accessing git repo:', err); } + if (err) { + return console.error(`Error accessing git repo: ${err}`); + } + global.sourcecodeVersion = log.all[0].hash.substring(0, 10); global.sourcecodeDate = log.all[0].date.substring(0, "0000-00-00".length); });