From 71e8d42b27aa1af2e810e24a95c70ba9a8419a86 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Wed, 22 Mar 2017 14:55:12 -0400 Subject: [PATCH] Minor style fixes and tweaks --- app/main.js | 4 ++-- ui/js/app.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/main.js b/app/main.js index 4b70973db..abbc24902 100644 --- a/app/main.js +++ b/app/main.js @@ -93,10 +93,10 @@ function launchDaemonIfNotRunning() { * tries to force kill them. */ function forceKillAllDaemons() { - console.log("Attempting to force kill any running lbrynet-daemon instances..."); + console.log('Attempting to force kill any running lbrynet-daemon instances...'); const fgrepOut = child_process.spawnSync('pgrep', ['-x', 'lbrynet-daemon'], {encoding: 'utf8'}).stdout; - const daemonPids = fgrepOut.split(/[^\d]+/).filter((pid) => pid); + const daemonPids = fgrepOut.match(/\d+/g); if (!daemonPids) { console.log('No lbrynet-daemon found running.'); } else { diff --git a/ui/js/app.js b/ui/js/app.js index 906802bb5..2826b4675 100644 --- a/ui/js/app.js +++ b/ui/js/app.js @@ -44,7 +44,6 @@ var App = React.createClass({ _version: null, getUpdateUrl: function() { - console.log('os.platform is', os.platform()); switch (os.platform()) { case 'darwin': return 'https://lbry.io/get/lbry.dmg';