mirror of https://github.com/embarklabs/embark.git
fix linting errors and clean up ze code
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
ab53bfba0c
commit
cdf46f2b30
|
@ -189,7 +189,7 @@ class Engine {
|
|||
});
|
||||
this.registerModule('profiler', {
|
||||
events: this.events,
|
||||
logger: this.logger,
|
||||
logger: this.logger
|
||||
});
|
||||
|
||||
this.contractsManager = new ContractsManager({
|
||||
|
|
|
@ -27,14 +27,14 @@ class Profiler {
|
|||
}
|
||||
|
||||
formatParams(params) {
|
||||
if (undefined !== params && params.length) {
|
||||
let paramString = "(";
|
||||
let mappedParams = params.map(param => param.type);
|
||||
paramString += mappedParams.join(',')
|
||||
paramString += ")";
|
||||
return paramString;
|
||||
if (!params || !params.length) {
|
||||
return "()";
|
||||
}
|
||||
return "()";
|
||||
let paramString = "(";
|
||||
let mappedParams = params.map(param => param.type);
|
||||
paramString += mappedParams.join(',');
|
||||
paramString += ")";
|
||||
return paramString;
|
||||
}
|
||||
|
||||
registerConsoleCommand() {
|
||||
|
|
Loading…
Reference in New Issue