Skip to content

Commit

Permalink
nil interface
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwe committed Mar 6, 2024
1 parent fdc101f commit fd495fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (h *rpcHandlerImpl[RequestType, ResponseType]) sendResponse(
res.Error = err.Error()
res.Code = string(psrpc.Unknown)
}
} else if response != nil {
} else if response.ProtoReflect().IsValid() {
b, err := bus.SerializePayload(response)
if err != nil {
res.Error = err.Error()
Expand Down

0 comments on commit fd495fc

Please sign in to comment.