Skip to content

Commit

Permalink
refactor: use prototype (#2165)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
  • Loading branch information
jly36963 and bcoe committed May 16, 2022
1 parent 1c331f2 commit 8912078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yargs-factory.ts
Expand Up @@ -389,7 +389,7 @@ export class YargsInstance {
let aliases: Dictionary<string[]>;

// Skip coerce logic if related arg was not provided
const shouldCoerce = Object.hasOwnProperty.call(argv, keys);
const shouldCoerce = Object.prototype.hasOwnProperty.call(argv, keys);
if (!shouldCoerce) {
return argv;
}
Expand Down

0 comments on commit 8912078

Please sign in to comment.