Skip to content

Recursive nesting in functions that have a return #2

Description

@kgrz

Example code that might cause this issue:

const a = () => {
  console.log('something');
  if (somecondition) {
    return;
  }
}

The resultant code looks something like this:

const a = () => {
  console.group('a');
  console.log('something');
  if (somecondition) {
    console.groupEnd();
    return;
  }

  // another groupend should've been added here
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions