File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -806,10 +806,10 @@ func (r *Reader) doPayloadKeyUnwrap(ctx context.Context) error { //nolint:gocogn
806806 wrappedKey , err = client .unwrap (ctx , keyAccessObj , r .manifest .EncryptionInformation .Policy )
807807 if err != nil {
808808 errToReturn := fmt .Errorf ("doPayloadKeyUnwrap splitKey.rewrap failed: %w" , err )
809- if ! strings .Contains (err .Error (), codes .InvalidArgument .String ()) {
809+ if strings .Contains (err .Error (), codes .InvalidArgument .String ()) {
810810 return fmt .Errorf ("%w: %w" , ErrRewrapBadRequest , errToReturn )
811811 }
812- if ! strings .Contains (err .Error (), codes .PermissionDenied .String ()) {
812+ if strings .Contains (err .Error (), codes .PermissionDenied .String ()) {
813813 return fmt .Errorf ("%w: %w" , errRewrapForbidden , errToReturn )
814814 }
815815 return errToReturn
You can’t perform that action at this time.
0 commit comments