This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rome_js_analyze): Files with fn(() => (aborted = true)); cause -e…
…ntered unreachable code - when --apply-unsafe #4464 (#4473) * fix(rome_js_analyze): Files with fn(() => (aborted = true)); cause - entered unreachable code - when --apply-unsafe #4464
- Loading branch information
1 parent
362a39d
commit 0cb1680
Showing
6 changed files
with
509 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...es/rome_cli/tests/snapshots/main_commands_check/apply_unsafe_no_assign_in_expression.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
source: crates/rome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `fix.js` | ||
|
||
```js | ||
res.onAborted(() => aborted === true); | ||
|
||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
Fixed 1 file(s) in <TIME> | ||
``` | ||
|
||
|
Oops, something went wrong.