Skip to content

Commit 38dbcdd

Browse files
authored
[Go] Fixes missing return statement (#8072) (#8090)
1 parent bac913f commit 38dbcdd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

modules/openapi-generator/src/main/resources/go/client.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err
415415
return err
416416
}
417417
} else {
418-
errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined")
418+
return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined")
419419
}
420420
} else if err = json.Unmarshal(b, v); err != nil { // simple model
421421
return err

samples/client/petstore/go/go-petstore/client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/openapi3/client/petstore/go/go-petstore/client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)