osc 99: eliminate unnecessary inline switch branches

This commit is contained in:
Jeffrey C. Ollie
2026-02-16 20:40:14 -06:00
committed by Mitchell Hashimoto
parent 07f33ad914
commit 073bffcff4

View File

@@ -175,8 +175,8 @@ pub const Option = enum {
metadata: []const u8,
) key.Type() {
var it: Iterator(Option, isValidMetadataValue, key) = switch (key) {
inline .t, .n => return .init(metadata),
inline else => .init(metadata),
.t, .n => return .init(metadata),
else => .init(metadata),
};
const value = it.next() orelse return key.default();