Skip to content

Commit 42aa072

Browse files
committed
clean up
1 parent 3eb53ee commit 42aa072

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

js/build/embark.bundle.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,6 @@ EmbarkJS.Storage.IPFS.uploadFile = function(inputSelector) {
383383
};
384384

385385
EmbarkJS.Storage.IPFS.getUrl = function(hash) {
386-
//var ipfsHash = web3.toAscii(hash);
387-
388-
//return 'http://localhost:8080/ipfs/' + hash;
389386
return (self.getUrl || "http://localhost:8080/ipfs/") + hash;
390387
};
391388

@@ -399,18 +396,16 @@ EmbarkJS.Messages.web3CompatibleWithV5 = function() {
399396
var _web3 = new Web3();
400397
if (typeof(_web3.version) === "string") {
401398
return true;
402-
} else {
403-
return parseInt(_web3.version.api.split('.')[1], 10) >= 20;
404399
}
400+
return parseInt(_web3.version.api.split('.')[1], 10) >= 20;
405401
};
406402

407403
EmbarkJS.Messages.isNewWeb3 = function() {
408404
var _web3 = new Web3();
409405
if (typeof(_web3.version) === "string") {
410406
return true;
411-
} else {
412-
return parseInt(_web3.version.api.split('.')[0], 10) >= 1;
413407
}
408+
return parseInt(_web3.version.api.split('.')[0], 10) >= 1;
414409
};
415410

416411
EmbarkJS.Messages.getWhisperVersion = function(cb) {

js/embark.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@ EmbarkJS.Storage.IPFS.uploadFile = function(inputSelector) {
301301
};
302302

303303
EmbarkJS.Storage.IPFS.getUrl = function(hash) {
304-
//var ipfsHash = web3.toAscii(hash);
305-
306-
//return 'http://localhost:8080/ipfs/' + hash;
307304
return (self.getUrl || "http://localhost:8080/ipfs/") + hash;
308305
};
309306

@@ -317,18 +314,16 @@ EmbarkJS.Messages.web3CompatibleWithV5 = function() {
317314
var _web3 = new Web3();
318315
if (typeof(_web3.version) === "string") {
319316
return true;
320-
} else {
321-
return parseInt(_web3.version.api.split('.')[1], 10) >= 20;
322317
}
318+
return parseInt(_web3.version.api.split('.')[1], 10) >= 20;
323319
};
324320

325321
EmbarkJS.Messages.isNewWeb3 = function() {
326322
var _web3 = new Web3();
327323
if (typeof(_web3.version) === "string") {
328324
return true;
329-
} else {
330-
return parseInt(_web3.version.api.split('.')[0], 10) >= 1;
331325
}
326+
return parseInt(_web3.version.api.split('.')[0], 10) >= 1;
332327
};
333328

334329
EmbarkJS.Messages.getWhisperVersion = function(cb) {

0 commit comments

Comments
 (0)