(style) move the else up to the previous line and the comment inside the else's block
} else if (...) {
  // 24-bit color support