lint: gRPC status.Error for static error messages

This commit is contained in:
Pasha Sviderski
2025-09-15 17:11:12 +10:00
parent 1f62e30a08
commit b6e9766f40
3 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ func (c *Cluster) ReserveDomain(ctx context.Context, req *pb.ReserveDomainReques
dnsClient := dns.NewClient()
name, token, err := dnsClient.ReserveDomain(req.Endpoint)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
return nil, status.Error(codes.Internal, err.Error())
}
domain := uncloudDNSDomain{