Skip to content

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

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 => {
  ...
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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