Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Jan 10, 2024
1 parent 5ba8506 commit dd44a89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions jwe/internal/aescbc/aescbc.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"errors"
"fmt"
"hash"
"math"
"sync/atomic"
)

Expand All @@ -27,7 +26,7 @@ func init() {
}

func SetMaxBufferSize(siz int64) {
if siz <= 0 || siz > math.MaxInt64 {
if siz <= 0 {
siz = defaultBufSize
}
maxBufSize.Store(siz)
Expand Down
1 change: 0 additions & 1 deletion jwe/jwe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -970,5 +970,4 @@ func TestMaxBufferSize(t *testing.T) {

_, err = jwe.Encrypt([]byte("Lorem Ipsum"), jwe.WithContentEncryption(jwa.A128CBC_HS256), jwe.WithKey(jwa.RSA_OAEP, key))
require.Error(t, err, `jwe.Encrypt should fail`)

}

0 comments on commit dd44a89

Please sign in to comment.