Skip to content

Commit

Permalink
julefmt: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 29, 2024
1 parent deb61a8 commit d1a9959
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/format.jule
Original file line number Diff line number Diff line change
Expand Up @@ -949,8 +949,7 @@ impl TypeFormatter {
ret
}
if r.idents.len == 1 {
if lex::is_ignore_ident(r.idents[0].kind) ||
lex::is_anon_ident(r.idents[0].kind) {
if lex::is_anon_ident(r.idents[0].kind) {
self.format(r.kind.kind)
ret
}
Expand All @@ -964,8 +963,7 @@ impl TypeFormatter {
self.write("(")
for (i, mut t) in types {
let ident = r.idents[i]
if lex::is_ignore_ident(ident.kind) ||
lex::is_anon_ident(ident.kind) {
if lex::is_anon_ident(ident.kind) {
self.format(t.kind)
} else {
self.write(ident.kind)
Expand Down

0 comments on commit d1a9959

Please sign in to comment.