Skip to content

Commit

Permalink
Rename providerDictionary to providerMap in gitCloner.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lumaxis authored Apr 17, 2024
1 parent 8a04999 commit e203f8b
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 e203f8b

Please sign in to comment.