Skip to content

Commit

Permalink
handler: Remove unnecessary prefix for system package
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Oct 13, 2023
1 parent dd2343a commit 4e5a06a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/handler/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package handler

import (
"context"
errorsStd "errors"
"errors"
"net/http"
"strconv"
"strings"
Expand Down Expand Up @@ -34,12 +34,12 @@ func transformToS3Error(err error) error {
return err
}

if errorsStd.Is(err, layer.ErrAccessDenied) ||
errorsStd.Is(err, layer.ErrNodeAccessDenied) {
if errors.Is(err, layer.ErrAccessDenied) ||
errors.Is(err, layer.ErrNodeAccessDenied) {
return s3errors.GetAPIError(s3errors.ErrAccessDenied)
}

if errorsStd.Is(err, layer.ErrMetaEmptyParameterValue) {
if errors.Is(err, layer.ErrMetaEmptyParameterValue) {
return s3errors.GetAPIError(s3errors.ErrUnsupportedMetadata)
}

Expand Down

0 comments on commit 4e5a06a

Please sign in to comment.