Skip to content

Commit f5887dd

Browse files
MassKlaustechatrix
authored andcommitted
remove a useless if statement
1 parent 8df3aea commit f5887dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/analysis.zig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5407,7 +5407,7 @@ pub fn getPositionContext(
54075407
if (std.mem.startsWith(u8, tree.source[tok.loc.start..], "@\"")) {
54085408
tok.tag = .identifier;
54095409
tok.loc = .{ .start = tok.loc.start, .end = @min(line_loc.end, tree.tokenStart(current_token + 1)) };
5410-
} else if (std.mem.startsWith(u8, tree.source[tok.loc.start..], "@")) {
5410+
} else {
54115411
tok.tag = .builtin;
54125412
tok.loc = .{ .start = tok.loc.start, .end = tok.loc.start + 1 };
54135413
}

0 commit comments

Comments
 (0)