Skip to content

Commit

Permalink
refactor: destructure util module
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh authored and Thomas Parisot committed Jan 17, 2020
1 parent 6311820 commit 294f695
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hexo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const loadDatabase = require('./load_database');
const multiConfigPath = require('./multi_config_path');
const resolve = require('resolve');
const full_url_for = require('../plugins/helper/full_url_for');
const { inherits } = require('util');

const { cloneDeep, debounce } = _;

Expand Down Expand Up @@ -448,7 +449,7 @@ class Hexo {
}
}

require('util').inherits(Hexo, EventEmitter);
inherits(Hexo, EventEmitter);

Hexo.lib_dir = libDir + sep;
Hexo.prototype.lib_dir = libDir + sep;
Expand Down

0 comments on commit 294f695

Please sign in to comment.