Answers for "38:7 error Closing curly brace does not appear on the same line as the subsequent block brace-style"

0

38:7 error Closing curly brace does not appear on the same line as the subsequent block brace-style

if (err.status === 'not found') {
  cb({ statusCode: 404 })
  return
} else {   // <--- now } is on same line as {
  cb({ statusCode: 500 })
  return
}
Posted by: Guest on July-04-2020

Code answers related to "38:7 error Closing curly brace does not appear on the same line as the subsequent block brace-style"

Browse Popular Code Answers by Language