Skip to content

Commit

Permalink
Remove dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 16, 2017
1 parent c13f695 commit 470ed80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

/* Dependencies. */
var has = require('has');
var extend = require('extend');
var bail = require('bail');
var vfile = require('vfile');
Expand All @@ -14,6 +13,7 @@ var plain = require('is-plain-obj');
module.exports = unified().freeze();

var slice = [].slice;
var own = {}.hasOwnProperty;

/* Process pipeline. */
var pipeline = trough().use(pipelineParse).use(pipelineRun).use(pipelineStringify);
Expand Down Expand Up @@ -145,7 +145,7 @@ function unified() {
}

/* Get `key`. */
return (has(namespace, key) && namespace[key]) || null;
return (own.call(namespace, key) && namespace[key]) || null;
}

/* Set space. */
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"dependencies": {
"bail": "^1.0.0",
"extend": "^3.0.0",
"has": "^1.0.1",
"is-plain-obj": "^1.1.0",
"trough": "^1.0.0",
"vfile": "^2.0.0",
Expand Down

0 comments on commit 470ed80

Please sign in to comment.