Files
test-repo/tests/switch/comments.js
T
Christopher Chedeau 58194e5375 Fix empty lines with comments between switch cases (#1709)
The function isPreviousLineEmpty comment doesn't skip comments (on purpose, see comment above that method :P) so the detection is messed up. Turns out, it's easier to just use isNextLineEmpty like everywhere else.

Fixes #1708
2017-05-24 13:20:05 -07:00

24 lines
209 B
JavaScript

switch (true) {
case true:
// Good luck getting here
case false:
}
switch (true) {
case true:
// Good luck getting here
case false:
}
switch(x) {
case x: {
}
// other
case y: {
}
}