mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
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', {
|
this.registerModule('profiler', {
|
||||||
events: this.events,
|
events: this.events,
|
||||||
logger: this.logger,
|
logger: this.logger
|
||||||
});
|
});
|
||||||
|
|
||||||
this.contractsManager = new ContractsManager({
|
this.contractsManager = new ContractsManager({
|
||||||
|
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user