Skip to content

Commit

Permalink
Review#1: Fix the wrong check for the absence of AAD attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Nov 1, 2019
1 parent bed212c commit dccd3bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class EncryptedSavedObjectsService {
}
}

if (Object.keys(attributesAAD).length) {
if (Object.keys(attributesAAD).length === 0) {
this.logger.debug(
`The AAD for saved object "${descriptorToArray(
descriptor
Expand Down

0 comments on commit dccd3bd

Please sign in to comment.