mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-22 10:15:24 +02:00
ci(github action): use golangci-lint to replace the deprecated golint (#1175)
* ci: use golangci-lint to replace the deprecated golint Co-authored-by: ymh199478 <yumenghan@bilibili.com>
This commit is contained in:
@@ -67,10 +67,7 @@ func (c codec) Unmarshal(data []byte, v interface{}) error {
|
||||
return MapProto(m, vs)
|
||||
}
|
||||
|
||||
if err := c.decoder.Decode(v, vs); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return c.decoder.Decode(v, vs)
|
||||
}
|
||||
|
||||
func (codec) Name() string {
|
||||
|
||||
Reference in New Issue
Block a user