Skip to content

don't extract a new variable for .then that returns input unmodified #10

Open
@jedwards1211

Description

@jedwards1211

e.g. the following currently ends up creating instances0 etc

.then(instances => {
   if (options.runHooks) {
     return this.runHooks().then(() => instances)
   }
   return instances
})
.then(instances => {
  ...
})

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions