Skip to content

Commit 253f852

Browse files
code clean up
1 parent 8bc7262 commit 253f852

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/processSnapshot.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class Queue {
5050
}
5151
}
5252

53-
if (!snapshot.options || (!snapshot.options.web && !snapshot.options.mobile)) {
53+
if (!snapshot.options || (snapshot.options && !snapshot.options.web && !snapshot.options.mobile)) {
5454
this.generateVariants(snapshot, this.ctx.config);
5555
}
5656
}
@@ -290,11 +290,11 @@ export default class Queue {
290290
}
291291
}
292292

293-
if (snapshot && snapshot.name && !this.snapshotNames.includes(snapshot.name)) {
293+
if (snapshot && snapshot.name && !this.snapshotNames.includes(snapshot.name) && !drop) {
294294
this.snapshotNames.push(snapshot.name);
295295
}
296296

297-
if (snapshot) {
297+
if (snapshot && !drop) {
298298
this.processGenerateVariants(snapshot);
299299
}
300300

0 commit comments

Comments
 (0)