ast: minor cleanup in is_blank_ident() (#13748)

pull/13752/head
yuyi 2022-03-16 15:30:37 +08:00 committed by GitHub
parent 089c93b613
commit 57cba4d3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1692,10 +1692,10 @@ pub:
[inline]
pub fn (expr Expr) is_blank_ident() bool {
match expr {
Ident { return expr.kind == .blank_ident }
else { return false }
if expr is Ident {
return expr.kind == .blank_ident
}
return false
}
pub fn (expr Expr) pos() token.Pos {