mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-28 17:51:22 +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
|
# - unconvert
|
||||||
# - unparam
|
# - unparam
|
||||||
# - unused
|
# - unused
|
||||||
# - varcheck
|
- varcheck
|
||||||
|
|
||||||
run:
|
run:
|
||||||
skip-files:
|
skip-files:
|
||||||
|
@ -3,9 +3,8 @@ package aliacr
|
|||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
defaultTemporaryTokenExpiredTime = time.Hour * 1 // nolint:deadcode
|
registryEndpointTpl = "https://registry.%s.aliyuncs.com"
|
||||||
registryEndpointTpl = "https://registry.%s.aliyuncs.com"
|
endpointTpl = "cr.%s.aliyuncs.com"
|
||||||
endpointTpl = "cr.%s.aliyuncs.com"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type authorizationToken struct {
|
type authorizationToken struct {
|
||||||
|
@ -24,8 +24,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
errInvalidTcrEndpoint error = errors.New("[tencent-tcr.newAdapter] Invalid TCR instance endpoint")
|
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
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user