Skip to content

Commit

Permalink
remove null check
Browse files Browse the repository at this point in the history
  • Loading branch information
paed01 committed Oct 17, 2024
1 parent d58e111 commit 08513d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engines.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ Engines.prototype._setupEngine = function setupEngine(engine) {

let addServices;
if (this.Services && (addServices = this.Services.call(engine, this.adapter, engine.name, engine.options.businessKey))) {
for (const [k, fn] of Object.entries(addServices || {})) {
for (const [k, fn] of Object.entries(addServices)) {
engine.environment.addService(k, fn);
}
}
Expand Down

0 comments on commit 08513d7

Please sign in to comment.