Skip to content

Commit 8479fbf

Browse files
remove unnecessary nesting
1 parent 27b5416 commit 8479fbf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/cloudflare/src/cli/build/patches/plugins/fetch-cache-wait-until.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ export function patchFetchCacheSetMissingWaitUntil(updater: ContentUpdater) {
2727
export const rule = `
2828
rule:
2929
kind: return_statement
30+
pattern: return $PROMISE, $CLONED2
31+
regex: Failed to set fetch cache
3032
all:
31-
- pattern: return $PROMISE, $CLONED2
32-
- regex: Failed to set fetch cache
3333
- follows:
3434
kind: lexical_declaration
35-
all:
36-
- pattern: let [$CLONED1, $CLONED2]
35+
pattern: let [$CLONED1, $CLONED2]
3736
3837
3938
fix: |

0 commit comments

Comments
 (0)