mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-24 16:11:43 +00:00
osc 99: eliminate unnecessary inline switch branches
This commit is contained in:
committed by
Mitchell Hashimoto
parent
07f33ad914
commit
073bffcff4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user