Skip to content

Commit

Permalink
Revert "fix: report error on empty experimental fallback"
Browse files Browse the repository at this point in the history
This reverts commit 22c56dc.
  • Loading branch information
aalemayhu committed Jan 25, 2025
1 parent d9460af commit 94f032f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib/parser/exporters/CustomExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import fs, { PathLike } from 'fs';

import CardGenerator from '../../anki/CardGenerator';
import Deck from '../Deck';
import { NO_PACKAGE_ERROR } from '../../error/constants';

class CustomExporter {
firstDeckName: string;
Expand All @@ -27,11 +26,6 @@ class CustomExporter {
}

configure(payload: Deck[]) {
const hasCards = payload.some((p) => p.cardCount > 0);
if (!hasCards) {
throw NO_PACKAGE_ERROR;
}

fs.writeFileSync(
this.getPayloadInfoPath(),
JSON.stringify(payload, null, 2)
Expand Down

0 comments on commit 94f032f

Please sign in to comment.