fix linting errors and clean up ze code

Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
VoR0220 2018-05-08 10:53:34 -05:00
parent ab53bfba0c
commit cdf46f2b30
2 changed files with 8 additions and 8 deletions

View File

@ -189,7 +189,7 @@ class Engine {
});
this.registerModule('profiler', {
events: this.events,
logger: this.logger,
logger: this.logger
});
this.contractsManager = new ContractsManager({

View File

@ -27,15 +27,15 @@ class Profiler {
}
formatParams(params) {
if (undefined !== params && params.length) {
if (!params || !params.length) {
return "()";
}
let paramString = "(";
let mappedParams = params.map(param => param.type);
paramString += mappedParams.join(',')
paramString += mappedParams.join(',');
paramString += ")";
return paramString;
}
return "()";
}
registerConsoleCommand() {
const self = this;