소스 검색

ESM: whitespace tidying

n1474335 7 년 전
부모
커밋
61832a9e2a
3개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/core/operations/AffineCipherDecode.mjs
  2. 1 0
      src/core/operations/AffineCipherEncode.mjs
  3. 1 0
      src/core/operations/BifidCipherDecode.mjs

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

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

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

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

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

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