Skip to content

Commit

Permalink
Merge pull request clearlydefined#570 from clearlydefined/git-cloner-…
Browse files Browse the repository at this point in the history
…provider-map

Rename variable for consistency
  • Loading branch information
lumaxis authored Apr 18, 2024
2 parents e51cb90 + e203f8b commit 3112cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/fetch/gitCloner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down Expand Up @@ -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`
}
}

Expand Down

0 comments on commit 3112cac

Please sign in to comment.