Use a single case rather than fallthrough

This commit is contained in:
gingerBill
2025-12-10 12:05:53 +00:00
parent 19915d4311
commit a72bdbb43d

View File

@@ -50,17 +50,8 @@ get_environment_color :: proc() -> Color_Depth {
//
// Only a small sampling of some common values are checked here.
switch term {
case "ansi": fallthrough
case "konsole": fallthrough
case "putty": fallthrough
case "rxvt": fallthrough
case "rxvt-color": fallthrough
case "screen": fallthrough
case "st": fallthrough
case "tmux": fallthrough
case "vte": fallthrough
case "xterm": fallthrough
case "xterm-color":
case "ansi", "konsole", "putty", "rxvt", "rxvt-color", "screen",
"st", "tmux", "vte", "xterm", "xterm-color":
return .Three_Bit
}
}