Skip to content

Commit

Permalink
refactor: replace url parse and format with simple split
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Apr 25, 2019
1 parent 9c4ca04 commit 46c1cac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/definitions/errors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const url = require('url');
const pkg = require('../../package.json');

const homepage = url.format({...url.parse(pkg.homepage), ...{hash: null}});
const [homepage] = pkg.homepage.split('#');
const linkify = file => `${homepage}/blob/master/${file}`;

module.exports = {
Expand Down

0 comments on commit 46c1cac

Please sign in to comment.