Skip to content

Commit

Permalink
fix: performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Sep 6, 2024
1 parent 09bc375 commit a1606d1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ impl TscDecorator {
elems: decorators
.into_iter()
.inspect(|e| {
has_private_access |= Self::has_private_access(e);
if has_private_access {
return;
}
has_private_access = Self::has_private_access(e);
})
.map(|mut v| {
remove_span(&mut v);
Expand Down

0 comments on commit a1606d1

Please sign in to comment.