Skip to content

Commit

Permalink
Merge pull request #68 from curbengh/hasownprop
Browse files Browse the repository at this point in the history
refactor: use Object.hasOwnProperty
  • Loading branch information
curbengh authored Jul 19, 2020
2 parents f53388d + 3cfcb0d commit 09a55d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/migrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { join, parse } = require('path');
module.exports = async function(args) {
const source = args._.shift();
const { alias } = args;
const skipduplicate = typeof args.skipduplicate !== 'undefined';
const skipduplicate = Object.prototype.hasOwnProperty.call(args, 'skipduplicate');
let { limit } = args;
const tomd = new TurndownService({ headingStyle: 'atx', codeBlockStyle: 'fenced' });
const { config, log } = this;
Expand Down

0 comments on commit 09a55d6

Please sign in to comment.