Skip to content

Commit de6e24f

Browse files
committed
CLEANUP: lint: fix linting errors
1 parent 41ded4e commit de6e24f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client-native/cn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
)
2020

2121
var (
22-
socketsList = map[int]string{}
22+
socketsList = map[int]string{} //nolint:unused
2323
muSocketsList sync.Mutex
2424
)
2525

handlers/raw.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ func (h *PostRawConfigurationHandlerImpl) Handle(params configuration.PostHAProx
123123
return configuration.NewPostHAProxyConfigurationCreated().WithPayload(params.Data)
124124
}
125125
if forceReload {
126-
callbackNeeded, reconfigureFunc, err := h.reconfigureRuntime(runtimeAPIsOld)
126+
var callbackNeeded bool
127+
var reconfigureFunc func()
128+
callbackNeeded, reconfigureFunc, err = h.reconfigureRuntime(runtimeAPIsOld)
127129
if err != nil {
128130
e := misc.HandleError(err)
129131
return configuration.NewPostHAProxyConfigurationDefault(int(*e.Code)).WithPayload(e)

0 commit comments

Comments
 (0)