Skip to content

Commit

Permalink
Remove duplicate and redundant code
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang committed Sep 26, 2024
1 parent 89dcca1 commit 6d9495c
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 6d9495c

Please sign in to comment.