瀏覽代碼

ESM: whitespace tidying

n1474335 7 年之前
父節點
當前提交
61832a9e2a

+ 1 - 2
src/core/operations/AffineCipherDecode.mjs

@@ -45,8 +45,7 @@ class AffineCipherDecode extends Operation {
      */
      */
     run(input, args) {
     run(input, args) {
         const alphabet = "abcdefghijklmnopqrstuvwxyz",
         const alphabet = "abcdefghijklmnopqrstuvwxyz",
-            a = args[0],
-            b = args[1],
+            [a, b] = args,
             aModInv = Utils.modInv(a, 26); // Calculates modular inverse of a
             aModInv = Utils.modInv(a, 26); // Calculates modular inverse of a
         let output = "";
         let output = "";
 
 

+ 1 - 0
src/core/operations/AffineCipherEncode.mjs

@@ -6,6 +6,7 @@
 
 
 import Operation from "../Operation";
 import Operation from "../Operation";
 import { affineEncode } from "../lib/Ciphers";
 import { affineEncode } from "../lib/Ciphers";
+
 /**
 /**
  * Affine Cipher Encode operation
  * Affine Cipher Encode operation
  */
  */

+ 1 - 0
src/core/operations/BifidCipherDecode.mjs

@@ -7,6 +7,7 @@
 import Operation from "../Operation";
 import Operation from "../Operation";
 import { genPolybiusSquare } from "../lib/Ciphers";
 import { genPolybiusSquare } from "../lib/Ciphers";
 import OperationError from "../errors/OperationError";
 import OperationError from "../errors/OperationError";
+
 /**
 /**
  * Bifid Cipher Decode operation
  * Bifid Cipher Decode operation
  */
  */