Skip to content

Commit

Permalink
simplified the argument cleanup function
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Mar 15, 2019
1 parent 745311c commit 3bb652a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/utils/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const getCliArg = ( arg ) => {
};

const cleanUpArgs = ( prefixes ) => {
return getCliArgs().filter( ( arg ) => {
return getCliArgs().filter( ( arg ) => {
return ! prefixes.some( ( prefix ) => arg.startsWith( prefix ) );
} );
};
Expand Down

0 comments on commit 3bb652a

Please sign in to comment.