Skip to content

Incorrect indentation of switch-case #271

Open
@user202729

Description

Example code:

    switch(e.key){
      case "Enter":
        acceptDocSearchResult(searchHighlightedElement);
        e.preventDefault();
        break;

After indentation, it will become like this:

    switch(e.key){
      case "Enter":
        acceptDocSearchResult(searchHighlightedElement);
      e.preventDefault();
      break;

I think the former is preferable.

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