Skip to content

Commit

Permalink
chore: dupl linter omit
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbespalov committed Apr 17, 2024
1 parent c3511d3 commit 1322232
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webcrypto/subtle_crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ type SubtleCrypto struct {
// The `key` parameter should be a `CryptoKey` to be used for encryption.
//
// The `data` parameter should contain the data to be encryption.
func (sc *SubtleCrypto) Encrypt(algorithm, key, data goja.Value) *goja.Promise {
func (sc *SubtleCrypto) Encrypt( //nolint:dupl // we have two similar methods
algorithm, key, data goja.Value,
) *goja.Promise {
rt := sc.vu.Runtime()

var plaintext []byte
Expand Down Expand Up @@ -125,7 +127,9 @@ func (sc *SubtleCrypto) Encrypt(algorithm, key, data goja.Value) *goja.Promise {
// The `key` parameter should be a `CryptoKey` to be used for decryption.
//
// The `data` parameter should contain the data to be decrypted.
func (sc *SubtleCrypto) Decrypt(algorithm, key, data goja.Value) *goja.Promise {
func (sc *SubtleCrypto) Decrypt( //nolint:dupl // we have two similar methods
algorithm, key, data goja.Value,
) *goja.Promise {
rt := sc.vu.Runtime()

var ciphertext []byte
Expand Down

0 comments on commit 1322232

Please sign in to comment.