pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/rpl/flow-coverage-report/commit/533d94fb99722d487daf88231cccb63e18655ce9

> fix: Fixed flow-command-path yargs coerce function · rpl/flow-coverage-report@533d94f · GitHub
Skip to content

Commit 533d94f

Browse files
committed
fix: Fixed flow-command-path yargs coerce function
1 parent 31af708 commit 533d94f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/cli/args.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ export default function processArgv(argv: Array<string>): any {
3333
alias: 'f',
3434
type: 'string',
3535
coerce: (value: mixed) => {
36-
if (value !== 'string') {
37-
throw new TypeError('Unexpected non-string value');
36+
if (typeof value !== 'string') {
37+
// $FlowIgnoreMe: allow value to be coerced to a string.
38+
throw new TypeError(`Unexpected non-string value: ${value}`);
3839
}
3940
return value.slice(0, 2) === './' ? path.resolve(value) : value;
4041
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy