소스 검색

Cleaned lint.

n1474335 7 년 전
부모
커밋
0e3751407b
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/core/operations/Hash.js

+ 4 - 2
src/core/operations/Hash.js

@@ -16,20 +16,22 @@ import Checksum from "./Checksum.js";
  */
 const Hash = {
 
-    /** Generic hash function
+    /**
+     * Generic hash function.
      *
      * @param {string} name
      * @param {string} input
      * @returns {string}
      */
     runHash: function(name, input) {
-        let hasher = CryptoApi.hasher(name);
+        const hasher = CryptoApi.hasher(name);
         hasher.state.message = input;
         hasher.state.length += input.length;
         hasher.process();
         return hasher.finalize().stringify("hex");
     },
 
+
     /**
      * MD2 operation.
      *