refactoring

This commit is contained in:
cubedro 2015-03-04 23:09:22 +02:00
parent 5a468ad6b8
commit 28c5e00a99
1 changed files with 1 additions and 8 deletions

View File

@ -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');