Skip to content

Commit

Permalink
style: lib/jwe/encrypt.js
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Aug 10, 2020
1 parent e0a2d57 commit eb482a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/jwe/encrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ class Encrypt {
let aad
if (this._aad) {
final.aad = base64url.encode(this._aad)
aad = Buffer.concat([Buffer.from(final.protected || ''), Buffer.from('.'), Buffer.from(final.aad)])
aad = Buffer.concat([
Buffer.from(final.protected || ''),
Buffer.from('.'),
Buffer.from(final.aad)
])
} else {
aad = Buffer.from(final.protected || '')
}
Expand Down

0 comments on commit eb482a8

Please sign in to comment.