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', { this.registerModule('profiler', {
events: this.events, events: this.events,
logger: this.logger, logger: this.logger
}); });
this.contractsManager = new ContractsManager({ this.contractsManager = new ContractsManager({

View File

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