bug 964: Make the structure of some queries more easy to read
authorBenny Baumann <BenBE@geshi.org>
Tue, 19 Feb 2013 18:19:13 +0000 (19:19 +0100)
committerBenny Baumann <BenBE@geshi.org>
Tue, 19 Feb 2013 18:26:58 +0000 (19:26 +0100)
www/keygenIE.js

index e6dd911..50faf76 100644 (file)
@@ -128,11 +128,14 @@ var CAcert_keygen_IE = function () {
                        var alg = getAlgorithm();
 
                        var bits = parseInt(keySize.value, 10);
-                       if ( bits < alg.MinLength || bits > alg.MaxLength ||
-                                       (alg.IncrementLength &&
-                                               (bits - alg.MinLength) % alg.IncrementLength !== 0)
+                       if (
+                               (bits < alg.MinLength) ||
+                               (bits > alg.MaxLength) ||
+                               (
+                                       alg.IncrementLength &&
+                                       ((bits - alg.MinLength) % alg.IncrementLength !== 0)
                                )
-                       {
+                       {
                                return false;
                        }
 
@@ -434,12 +437,14 @@ var CAcert_keygen_IE = function () {
                /// Get the selected key size
                var getKeySize = function () {
                        var bits = parseInt(keySize.value, 10);
-                       if ( bits < getMinSigKeyLength() || bits > getMaxSigKeyLength() ||
-                                       (getStepSigKeyLength() &&
-                                               (bits - getMinSigKeyLength()) %
-                                                       getStepSigKeyLength() !== 0)
+                       if (
+                               (bits < getMinSigKeyLength()) ||
+                               (bits > getMaxSigKeyLength()) ||
+                               (
+                                       getStepSigKeyLength() &&
+                                       ((bits - getMinSigKeyLength()) % getStepSigKeyLength() !== 0)
                                )
-                       {
+                       {
                                return false;
                        }