From 0a3387f19918bc1012ad2ee3db7bc6771caa9624 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 20 Sep 2021 14:49:55 +0530 Subject: fix: Remove extra validation for serviceUrl for github since the url doesn't seem to be valid any more. --- recipes/github/index.js | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'recipes/github/index.js') diff --git a/recipes/github/index.js b/recipes/github/index.js index dfcd7d1..a84e54a 100644 --- a/recipes/github/index.js +++ b/recipes/github/index.js @@ -1,19 +1,2 @@ module.exports = Ferdi => class GitHub extends Ferdi { - async validateUrl(url) { - try { - const resp = await window.fetch(`${url}/api/v3`, { - method: 'GET', - headers: { - 'Content-Type': 'application/json', - Accept: 'application/vnd.github.v3+json', - }, - }); - // doc: https://developer.github.com/enterprise/2.17/v3/#current-version - return resp.status.toString().startsWith('2'); - } catch (err) { - console.error(err); - } - - return false; - } }; -- cgit v1.2.3-70-g09d2