Skip to content

Commit

Permalink
refactor identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
vankop committed Feb 28, 2022
1 parent e819c06 commit ee7bf4b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/ContextModule.js
Expand Up @@ -317,13 +317,11 @@ class ContextModule extends Module {
} else if (this.options.resource === false) {
identifier = "false";
} else {
const arr = [];
for (const res of this.options.resource) {
arr.push(
identifier = this.options.resource
.map(res =>
contextify(options.context, res, options.associatedObjectForCache)
);
}
identifier = arr.join(" ");
)
.join(" ");
}

if (this.layer) identifier = `(${this.layer})/${identifier}`;
Expand Down

0 comments on commit ee7bf4b

Please sign in to comment.