Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 46681d0

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/main.ts

Copy file name to clipboardExpand all lines: src/main.ts
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.