File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/cloudflare/src/api/durable-objects Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ export class BucketCachePurge extends DurableObject<CloudflareEnv> {
5353 . toArray ( ) ;
5454 do {
5555 if ( tags . length === 0 ) {
56- // No tags to purge, we can stop
57- return ;
58- }
56+ // No tags to purge, we can stop
57+ return ;
58+ }
5959 await internalPurgeCacheByTags (
6060 this . env ,
6161 tags . map ( ( row ) => row . tag )
@@ -71,9 +71,7 @@ export class BucketCachePurge extends DurableObject<CloudflareEnv> {
7171 ` ,
7272 tags . map ( ( row ) => row . tag )
7373 ) ;
74- if ( tags . length < MAX_NUMBER_OF_TAGS_PER_PURGE
75-
76- ) {
74+ if ( tags . length < MAX_NUMBER_OF_TAGS_PER_PURGE ) {
7775 // If we have less than MAX_NUMBER_OF_TAGS_PER_PURGE tags, we can stop
7876 tags = [ ] ;
7977 } else {
You can’t perform that action at this time.
0 commit comments