Lint: fix lint (#1427)

* Lint: replace golint with revive
* Lint: fix lint
This commit is contained in:
Loyalsoldier
2021-11-27 17:16:41 +08:00
committed by GitHub
parent 43447aa2e4
commit dce8764fd7
72 changed files with 346 additions and 368 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ func dialAPIServerWithContext(ctx context.Context) (conn *grpc.ClientConn) {
return
}
func protoToJSONString(m proto.Message, prefix, indent string) (string, error) {
func protoToJSONString(m proto.Message, prefix, indent string) (string, error) { // nolint: unparam
return strings.TrimSpace(protojson.MarshalOptions{Indent: indent}.Format(m)), nil
}