Skip to content

Commit

Permalink
corrects ci errors
Browse files Browse the repository at this point in the history
Signed-off-by: Nell Shamrell <[email protected]>
  • Loading branch information
nellshamrell committed Nov 11, 2021
1 parent 2f2378c commit cdddaba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions routes/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ async function getDefinition(request, response) {
const log = logger()
log.info('getDefinition route hit', { ts: new Date().toISOString(), requestParams: request.params })

let coordinates

// Painful way of handling go namespaces with multiple slashes
// Unfortunately, it seems the best option without doing a massive
// rearchitecture of the entire coordinate system
if (request.params.type == "go" && request.params.provider == "golang") {
if (request.params.type == 'go' && request.params.provider == 'golang') {
let namespaceNameRevision = utils.parseNamespaceNameRevision(request)
let splitString = namespaceNameRevision.split("/")
let splitString = namespaceNameRevision.split('/')

// Pull off the last part of the string as the revision
const revision = splitString.pop()
Expand Down

0 comments on commit cdddaba

Please sign in to comment.