From e203f8b03d773ed48afe60ac267876eec63d427e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Spie=C3=9F?= Date: Wed, 17 Apr 2024 17:22:12 +0200 Subject: [PATCH] Rename providerDictionary to providerMap in gitCloner.js --- providers/fetch/gitCloner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/fetch/gitCloner.js b/providers/fetch/gitCloner.js index 00b80615..c28f9ff1 100644 --- a/providers/fetch/gitCloner.js +++ b/providers/fetch/gitCloner.js @@ -7,7 +7,7 @@ const { clone } = require('lodash') const rimraf = require('rimraf') const FetchResult = require('../../lib/fetchResult') -const providerDictionary = { +const providerMap = { gitlab: 'https://gitlab.com', github: 'https://github.com' } @@ -95,7 +95,7 @@ class GitCloner extends AbstractFetch { _buildUrl(spec) { const fullName = `${spec.namespace.replace(/\./g, '/')}/${spec.name}` - return `${providerDictionary[spec.provider]}/${fullName}.git` + return `${providerMap[spec.provider]}/${fullName}.git` } }