Skip to content

Commit

Permalink
Merge pull request #2080 from cuishuang/main
Browse files Browse the repository at this point in the history
Remove duplicate and redundant code
  • Loading branch information
vroldanbet authored Sep 26, 2024
2 parents 89dcca1 + 6d9495c commit 0d882c7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/services/shared/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ func rewriteError(ctx context.Context, err error, config *ConfigForErrors) error
return ErrServiceReadOnly
case errors.As(err, &datastore.ErrInvalidRevision{}):
return status.Errorf(codes.OutOfRange, "invalid zedtoken: %s", err)
case errors.As(err, &datastore.ErrReadOnly{}):
return ErrServiceReadOnly
case errors.As(err, &datastore.ErrCaveatNameNotFound{}):
return spiceerrors.WithCodeAndReason(err, codes.FailedPrecondition, v1.ErrorReason_ERROR_REASON_UNKNOWN_CAVEAT)
case errors.As(err, &datastore.ErrWatchDisabled{}):
Expand Down

0 comments on commit 0d882c7

Please sign in to comment.