Skip to content

Commit 46681d0

Browse files
authored
Merge pull request #143 from Ps7ch3/master
feat: allow empty diff when 'renderNothingWhenEmpty' enabled
2 parents 0973769 + 9d078f8 commit 46681d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function main(): Promise<void> {
1111

1212
const input = await cli.getInput(configuration.inputSource, argv.extraArguments, configuration.ignore);
1313

14-
if (!input) {
14+
if (!input && !diff2htmlOptions.renderNothingWhenEmpty) {
1515
process.exitCode = 3;
1616
log.error('The input is empty. Try again.');
1717
yargs.help();

0 commit comments

Comments
 (0)