Skip to content

Commit

Permalink
handler: Remove redundant package alias
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
  • Loading branch information
smallhive committed Sep 24, 2024
1 parent a9315be commit 092584a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/handler/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/base64"
"encoding/json"
"encoding/xml"
errorsStd "errors"
"errors"
"fmt"
"io"
"net"
Expand Down Expand Up @@ -337,7 +337,7 @@ func formEncryptionParams(r *http.Request) (enc encryption.Params, err error) {
}

if r.TLS == nil {
return enc, errorsStd.New("encryption available only when TLS is enabled")
return enc, errors.New("encryption available only when TLS is enabled")
}

if sseCustomerAlgorithm != layer.AESEncryptionAlgorithm {
Expand Down Expand Up @@ -777,7 +777,7 @@ func (h handler) setPolicy(prm *layer.CreateBucketParams, locationConstraint str
policy, err := h.placementPolicyProvider.GetPlacementPolicy(locationConstraint)
if err != nil {
// nothing to do.
if errorsStd.Is(err, models.ErrNotFound) {
if errors.Is(err, models.ErrNotFound) {
return
}

Expand Down

0 comments on commit 092584a

Please sign in to comment.