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

Sign up
Appearance settings

Commit 9d078f8

Browse files
committed
feat: allow empty diff when 'renderNothingWhenEmpty' enabled
When '--renderNothingWhenEmpty' enabled, don't fail even if content is empty. Closes: #141
1 parent 0973769 commit 9d078f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎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)

AltStyle によって変換されたページ (->オリジナル) /