Skip to content

Commit db66281

Browse files
committed
remove excess whitespace
1 parent 4882a93 commit db66281

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

packages/cli/src/cliEntry.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,9 @@ function printHelpInformation(examples, pkg) {
5050

5151
let output = [
5252
chalk.bold(`react-native ${cmdName} ${this.usage()}`),
53-
'',
54-
this._description ? `${this._description}` : '',
55-
'',
53+
!this._description ? `\n${this._description}\n` : '',
5654
...sourceInformation,
5755
`${chalk.bold('Options:')}`,
58-
'',
5956
this.optionHelp().replace(/^/gm, ' '),
6057
];
6158

@@ -64,14 +61,10 @@ function printHelpInformation(examples, pkg) {
6461
.map(example => ` ${example.desc}: \n ${chalk.cyan(example.cmd)}`)
6562
.join('\n\n');
6663

67-
output = output.concat([
68-
chalk.bold('\nExample usage:'),
69-
'',
70-
formattedUsage,
71-
]);
64+
output = output.concat([chalk.bold('\nExample usage:'), formattedUsage]);
7265
}
7366

74-
return output.concat(['', '']).join('\n');
67+
return output.join('\n');
7568
}
7669

7770
function printUnknownCommand(cmdName) {

0 commit comments

Comments
 (0)