mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-10-03 21:50:45 +00:00
ci: fix formatting
This commit is contained in:
parent
0fbe23b325
commit
d90db0ce14
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ func GetTargetFromDNS(domain, mainDomainSuffix, firstDefaultBranch string) (targ
|
|||
_ = lookupCache.Add(domain, cname)
|
||||
}
|
||||
if cname == "" {
|
||||
return
|
||||
return targetOwner, targetRepo, targetBranch
|
||||
}
|
||||
cnameParts := strings.Split(strings.TrimSuffix(cname, mainDomainSuffix), ".")
|
||||
targetOwner = cnameParts[len(cnameParts)-1]
|
||||
|
@ -62,5 +62,5 @@ func GetTargetFromDNS(domain, mainDomainSuffix, firstDefaultBranch string) (targ
|
|||
targetBranch = firstDefaultBranch
|
||||
}
|
||||
// if targetBranch is still empty, the caller must find the default branch
|
||||
return
|
||||
return targetOwner, targetRepo, targetBranch
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue