From 28c5e00a9986162c1a08aacad49bd1b4ff6dfbcd Mon Sep 17 00:00:00 2001 From: cubedro Date: Wed, 4 Mar 2015 23:09:22 +0200 Subject: [PATCH] refactoring --- lib/node.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/node.js b/lib/node.js index 62edf95..baa15a7 100644 --- a/lib/node.js +++ b/lib/node.js @@ -22,14 +22,7 @@ if(process.env.NODE_ENV === 'production') { INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output; - if(ETH_IMPLEMENTATION === 'go') - { - ETH_VERSION = shelljs.exec('ethereum -version', {silent: true}).output; - } - else - { - ETH_VERSION = shelljs.exec('eth -V', {silent: true}).output; - } + ETH_VERSION = shelljs.exec((ETH_IMPLEMENTATION === 'go' ? 'ethereum -version' : 'eth -V'), {silent: true}).output; } var socket = new Socket(process.env.WS_SERVER || 'ws://localhost:3000');