Skip to content

Commit

Permalink
fixup! fix: s3ParamNotFound into ssmParameterNotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolodziejczykmaciek committed Oct 8, 2024
1 parent 1a57832 commit edc8664
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ func (c *Client) Write(key, secret string, force bool) error {
secretObject, err := c.Read(key)

if err != nil {
var nsk *s3Types.NoSuchKey
var nf *ssmTypes.ParameterNotFound
var nsk s3Types.NoSuchKey
var nf ssmTypes.ParameterNotFound

if !errors.As(err, &nsk) && !errors.As(err, &nf) {
if !errors.As(err, nsk.Error()) && !errors.As(err, nf.Error()) {

Check failure on line 30 in client/write.go

View workflow job for this annotation

GitHub Actions / test

second argument to errors.As must be a non-nil pointer to either a type that implements error, or to any interface type

Check failure on line 30 in client/write.go

View workflow job for this annotation

GitHub Actions / test

second argument to errors.As must be a non-nil pointer to either a type that implements error, or to any interface type
return err
}
} else if secret == secretObject.Value {
Expand Down

0 comments on commit edc8664

Please sign in to comment.