mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 01:40:00 +08:00
fix golint issues, else blocks (#457)
This commit is contained in:
@@ -216,7 +216,7 @@ func (c *componentsContext) writeMembers(writer io.Writer, tp spec.Type, indent
|
||||
if ok {
|
||||
return c.writeMembers(writer, pointType.Type, indent)
|
||||
}
|
||||
return errors.New(fmt.Sprintf("type %s not supported", tp.Name()))
|
||||
return fmt.Errorf("type %s not supported", tp.Name())
|
||||
}
|
||||
|
||||
for _, member := range definedType.Members {
|
||||
|
||||
Reference in New Issue
Block a user