Skip to content

Commit e0d611a

Browse files
resolved edge case
1 parent 123aca2 commit e0d611a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib/snapshotQueue.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,16 @@ export default class Queue {
269269
this.processingSnapshot = snapshot?.name;
270270
let drop = false;
271271

272+
if (!this.ctx.config.delayedUpload && snapshot && snapshot.name && this.snapshotNames.includes(snapshot.name)) {
273+
drop = true;
274+
this.ctx.log.info(`SmartUI snapshot failed; Same snapshot ${snapshot.name} has been encountered with delayedUploads being false`);
275+
}
276+
272277
if (this.ctx.config.delayedUpload && snapshot && snapshot.name && this.snapshotNames.includes(snapshot.name)) {
273-
if (!this.ctx.config.delayedUpload){
274-
drop = true;
275-
this.ctx.log.debug(`snapshot failed; Same snapshot has been encountered with delayedUploads being false`);
276-
} else {
277-
drop = this.filterExistingVariants(snapshot, this.ctx.config);
278-
}
278+
drop = this.filterExistingVariants(snapshot, this.ctx.config);
279279
}
280280

281-
if (this.ctx.config.delayedUpload && snapshot && snapshot.name && !this.snapshotNames.includes(snapshot.name) && !drop) {
281+
if (snapshot && snapshot.name && !this.snapshotNames.includes(snapshot.name) && !drop) {
282282
this.snapshotNames.push(snapshot.name);
283283
}
284284

0 commit comments

Comments
 (0)