Skip to content

Commit

Permalink
Use strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Jun 10, 2020
1 parent 6105899 commit aeef141
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/find-specs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const fetch = require("node-fetch");

const specs = require("../index.json");
Expand Down Expand Up @@ -25,7 +27,7 @@ const watchedBrowserCgs = [
];

function canonicalizeGhUrl(r) {
url = new URL(r.homepageUrl);
const url = new URL(r.homepageUrl);
url.protocol = 'https:';
if (url.pathname.lastIndexOf('/') === 0 && url.pathname.length > 1) {
url.pathname += '/';
Expand Down

0 comments on commit aeef141

Please sign in to comment.