233 if interfaceCloses(iface) {
234 // Function's argument requires an io.Closer, it will likely close it
235 argIdent := fun.Args[i].(*ast.Ident)
236 if argIdent != nil {
237 v.addClosed(v.pi.ObjectOf(argIdent).Pos())
238 }
239 }
Offending line:
314 checkClose(resp.Body, &err)
argIdent probably just needs to be swapped around for exprDef function.
Code:
Offending line:
argIdent
probably just needs to be swapped around forexprDef
function.