Skip to content

Enable a lint rule not to define after return and fix existing callsites #17885

Closed
@sebmarkbage

Description

@sebmarkbage

https://twitter.com/therealyashsriv/status/1219691914523545601

We shouldn't generate code that might cause browser or linting to complain.

function getPooledWarningPropertyDefinition(propName, getVal) {

It's also just a confusing pattern at best.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions