Skip to content

Commit 13a33a3

Browse files
autofix-ci[bot]sapphi-red
authored andcommitted
[autofix.ci] apply automated fixes
1 parent b6ce499 commit 13a33a3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

crates/oxc_minifier/src/peephole/normalize.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ impl<'a> Normalize {
180180
// checking whether any variables are exposed to outside (e.g. `export` in ESM)
181181
if decl.kind.is_const()
182182
&& ctx.current_scope_id() != ctx.scoping().root_scope_id()
183-
&& !ctx.current_scope_flags().contains_direct_eval() // direct eval may have a assignment inside
183+
// direct eval may have a assignment inside
184+
&& !ctx.current_scope_flags().contains_direct_eval()
184185
{
185186
let all_declarations_are_only_read =
186187
decl.declarations.iter().flat_map(|d| d.id.get_binding_identifiers()).all(|id| {
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
File | File size || Sys allocs | Sys reallocs || Arena allocs | Arena reallocs | Arena bytes
22
-------------------------------------------------------------------------------------------------------------------------------------------
3-
checker.ts | 2.92 MB || 10157 | 21 || 268665 | 23341
3+
checker.ts | 2.92 MB || 10163 | 21 || 268665 | 23341
44

5-
cal.com.tsx | 1.06 MB || 2197 | 54 || 138188 | 13712
5+
cal.com.tsx | 1.06 MB || 2205 | 61 || 138188 | 13712
66

77
RadixUIAdoptionSection.jsx | 2.52 kB || 1 | 0 || 365 | 66
88

9-
pdf.mjs | 567.30 kB || 683 | 71 || 90678 | 8148
9+
pdf.mjs | 567.30 kB || 701 | 75 || 90678 | 8148
1010

11-
antd.js | 6.69 MB || 6938 | 236 || 528505 | 55357
11+
antd.js | 6.69 MB || 6995 | 235 || 528505 | 55357
1212

1313
binder.ts | 193.08 kB || 537 | 7 || 16807 | 1475
1414

0 commit comments

Comments
 (0)