Skip to content

Document what cases checkRedundantReturns covers #30

@cowwoc

Description

@cowwoc

I've got checkRedundantReturns enabled. So far I've gotten a warning for @return {undefined} (which I understand) but then I just got it for:

/**
 * @return {UnauthorizedException} the exception
 */
function UnauthorizedException()
{
  ...
}

Why is the @return redundant? Isn't it possible for the constructor to return a subclass?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions