mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-28 01:32:15 +01:00
fix: update code for golangci-lint varcheck (#17045)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
This commit is contained in:
parent
541fbe784f
commit
44bfb992f4
@ -41,7 +41,7 @@ linters:
|
||||
# - unconvert
|
||||
# - unparam
|
||||
# - unused
|
||||
# - varcheck
|
||||
- varcheck
|
||||
|
||||
run:
|
||||
skip-files:
|
||||
|
@ -3,9 +3,8 @@ package aliacr
|
||||
import "time"
|
||||
|
||||
const (
|
||||
defaultTemporaryTokenExpiredTime = time.Hour * 1 // nolint:deadcode
|
||||
registryEndpointTpl = "https://registry.%s.aliyuncs.com"
|
||||
endpointTpl = "cr.%s.aliyuncs.com"
|
||||
registryEndpointTpl = "https://registry.%s.aliyuncs.com"
|
||||
endpointTpl = "cr.%s.aliyuncs.com"
|
||||
)
|
||||
|
||||
type authorizationToken struct {
|
||||
|
@ -24,8 +24,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
errInvalidTcrEndpoint error = errors.New("[tencent-tcr.newAdapter] Invalid TCR instance endpoint")
|
||||
errPingTcrEndpointFailed error = errors.New("[tencent-tcr.newAdapter] Ping TCR instance endpoint failed") // nolint:deadcode
|
||||
errInvalidTcrEndpoint error = errors.New("[tencent-tcr.newAdapter] Invalid TCR instance endpoint")
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
Loading…
Reference in New Issue
Block a user