Skip to content

Commit 4863cfe

Browse files
committed
Add return annotation and remove extra semicolon
1 parent bc68e92 commit 4863cfe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/cli

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ function getPath( path ) {
8484
* Main execution sequence.
8585
*
8686
* @private
87+
* @returns {void}
8788
*/
8889
function main() {
8990
var subargs;
@@ -111,13 +112,13 @@ function main() {
111112
if ( args.length === 1 ) {
112113
return cli.help();
113114
}
114-
cmd = findCommand( args[ 1 ] );;
115+
cmd = findCommand( args[ 1 ] );
115116
if ( cmd === null ) {
116117
return onError( new Error( 'invalid argument. Unrecognized/unsupported command. Value: `' + args[ 1 ] + '`.' ) );
117118
}
118119
subargs = [ getPath( cmd.path ), '--help' ];
119120
} else {
120-
cmd = findCommand( args[ 0 ] );;
121+
cmd = findCommand( args[ 0 ] );
121122
if ( cmd === null ) {
122123
return onError( new Error( 'invalid argument. Unrecognized/unsupported command. Value: `' + args[ 0 ] + '`.' ) );
123124
}

0 commit comments

Comments
 (0)