This was found in the gorilla-server generator, I don't know if this also happens for other server generators.
Generated code looks as follows:
// ------------- Optional query parameter "name" -------------
if paramValue := r.URL.Query().Get("name"); paramValue != "" {
// this is empty
}
// BindQueryParameter
The if block has an empty body. I'm not sure if code is missing here, or if the whole if condition is superfluous.