Art9Studio / Aureole

A function's error value should be its last return value SCC-ST1008
Style
Minor
2 years ago2 years old
error should be returned as the last argument
 83	return nil
 84}
 85
 86func assemblePaths(r *router, app *app) (error, openapi3.Paths) { 87	paths := openapi3.Paths{}
 88	for _, route := range r.getAppRoutes()[app.name] {
 89		pathItem := openapi3.PathItem{}