We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9460af commit 94f032fCopy full SHA for 94f032f
src/lib/parser/exporters/CustomExporter.ts
@@ -3,7 +3,6 @@ import fs, { PathLike } from 'fs';
3
4
import CardGenerator from '../../anki/CardGenerator';
5
import Deck from '../Deck';
6
-import { NO_PACKAGE_ERROR } from '../../error/constants';
7
8
class CustomExporter {
9
firstDeckName: string;
@@ -27,11 +26,6 @@ class CustomExporter {
27
26
}
28
29
configure(payload: Deck[]) {
30
- const hasCards = payload.some((p) => p.cardCount > 0);
31
- if (!hasCards) {
32
- throw NO_PACKAGE_ERROR;
33
- }
34
-
35
fs.writeFileSync(
36
this.getPayloadInfoPath(),
37
JSON.stringify(payload, null, 2)
0 commit comments