mirror of
https://github.com/project-zot/zot.git
synced 2026-06-19 22:27:58 +08:00
build: migrate to golang 1.23.x (#2701)
* build: migrate to golang 1.23.x Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> * fix: golangci-lint reported errors Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> --------- Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
GitHub
parent
a76bfd4283
commit
5465aa0d51
@@ -78,7 +78,7 @@ func NewController(appConfig *config.Config) *Controller {
|
||||
panic("failed to get member socket")
|
||||
}
|
||||
|
||||
if memberSocket == "" {
|
||||
if memberSocketIdx < 0 || memberSocket == "" {
|
||||
// there is a misconfiguration if the memberSocket cannot be identified
|
||||
logger.Error().
|
||||
Str("members", strings.Join(appConfig.Cluster.Members, ",")).
|
||||
|
||||
Reference in New Issue
Block a user