mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
Fix errors reported by the yoda
ESLint rule
http://eslint.org/docs/rules/yoda
This commit is contained in:
parent
e53ab844cc
commit
66d2637b3f
2 changed files with 6 additions and 6 deletions
|
@ -2057,17 +2057,17 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() {
|
|||
return new NullCipher();
|
||||
};
|
||||
}
|
||||
if ('V2' === cfm.name) {
|
||||
if (cfm.name === 'V2') {
|
||||
return function cipherTransformFactoryBuildCipherConstructorV2() {
|
||||
return new ARCFourCipher(buildObjectKey(num, gen, key, false));
|
||||
};
|
||||
}
|
||||
if ('AESV2' === cfm.name) {
|
||||
if (cfm.name === 'AESV2') {
|
||||
return function cipherTransformFactoryBuildCipherConstructorAESV2() {
|
||||
return new AES128Cipher(buildObjectKey(num, gen, key, true));
|
||||
};
|
||||
}
|
||||
if ('AESV3' === cfm.name) {
|
||||
if (cfm.name === 'AESV3') {
|
||||
return function cipherTransformFactoryBuildCipherConstructorAESV3() {
|
||||
return new AES256Cipher(key);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue