Skip to content

Commit 94f032f

Browse files
committed
Revert "fix: report error on empty experimental fallback"
This reverts commit 22c56dc.
1 parent d9460af commit 94f032f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/lib/parser/exporters/CustomExporter.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import fs, { PathLike } from 'fs';
33

44
import CardGenerator from '../../anki/CardGenerator';
55
import Deck from '../Deck';
6-
import { NO_PACKAGE_ERROR } from '../../error/constants';
76

87
class CustomExporter {
98
firstDeckName: string;
@@ -27,11 +26,6 @@ class CustomExporter {
2726
}
2827

2928
configure(payload: Deck[]) {
30-
const hasCards = payload.some((p) => p.cardCount > 0);
31-
if (!hasCards) {
32-
throw NO_PACKAGE_ERROR;
33-
}
34-
3529
fs.writeFileSync(
3630
this.getPayloadInfoPath(),
3731
JSON.stringify(payload, null, 2)

0 commit comments

Comments
 (0)