Adding go lint to more modules (#738)

This commit is contained in:
Igor Gov
2022-02-01 12:08:55 +02:00
committed by GitHub
parent c0f6f2a049
commit 602225bb36
34 changed files with 195 additions and 1326 deletions

View File

@@ -26,9 +26,9 @@ func CreateResponseRequestMatcher() requestResponseMatcher {
func (matcher *requestResponseMatcher) registerRequest(key string, request *Request) *RequestResponsePair {
if response, found := matcher.openMessagesMap.LoadAndDelete(key); found {
// Check for a situation that only occurs when a Kafka broker is initiating
switch response.(type) {
switch v := response.(type) {
case *Response:
return matcher.preparePair(request, response.(*Response))
return matcher.preparePair(request, v)
}
}