up lint
This commit is contained in:
1 parent
b692728cc3
commit
59875487ae
7 files changed
+13
-7
No files matched your search
+1
-1
@@ -138,7 +138,7 @@ func (p Grpc) handleError(err error, w http.ResponseWriter, endpoint string) err
|
||||
)
|
||||
}
|
||||
|
||||
func (p Grpc) writeProto(statusCode int, proto interface{}, w http.ResponseWriter) error {
|
||||
func (p Grpc) writeProto(statusCode int, proto any, w http.ResponseWriter) error {
|
||||
data, err := json.Marshal(proto)
|
||||
if err != nil {
|
||||
return errors.WithMessage(err, "marshal grpc details to json")
|
||||
|
||||
Reference in new issue
Block a user