mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
Lint
This commit is contained in:
parent
1e183d7249
commit
b67ead8f70
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ func Handler(mainDomainSuffix, rawDomain []byte,
|
||||||
|
|
||||||
// tryBranch checks if a branch exists and populates the target variables. If canonicalLink is non-empty, it will
|
// tryBranch checks if a branch exists and populates the target variables. If canonicalLink is non-empty, it will
|
||||||
// also disallow search indexing and add a Link header to the canonical URL.
|
// also disallow search indexing and add a Link header to the canonical URL.
|
||||||
tryBranch := func(logInfo string, repo, branch string, path []string, canonicalLink string) bool {
|
tryBranch := func(logInfo, repo, branch string, path []string, canonicalLink string) bool {
|
||||||
if repo == "" {
|
if repo == "" {
|
||||||
log.Debug("tryBranch%s: repo is empty", logInfo)
|
log.Debug("tryBranch%s: repo is empty", logInfo)
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue