profile always return

This commit is contained in:
Anthony Laibe 2018-08-31 13:41:41 +01:00
parent a1c2d7e77a
commit a325abe1c2
1 changed files with 1 additions and 3 deletions

View File

@ -45,9 +45,7 @@ class GasEstimator {
getVarianceCb(err, gasAmount);
});
}, (err, variance) => {
if (err) {
return gasCb(err, name, abiMethod.type);
} else if (variance.every(v => v === variance[0])) {
if (variance.every(v => v === variance[0])) {
gasMap[name] = variance[0];
} else {
// get average