Skip to content

Indentation of switch case inside a callback #423

Closed
@eddiezane

Description

@eddiezane

On develop.

app.post('/events', function (req, res) {
  switch (req.body.foo) {
  case 'participant-join': // not indented far enough
    break // not indented far enough
    case 'participant-leave':
      delete db[req.body.CallSid]
      break
  }
})

screen shot 2016-05-08 at 12 36 20 pm

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions