]> git.ardis.lu - 4-byte-gen/commitdiff
Skip empty lines
authorArdis Lu <ardisglu@gmail.com>
Sun, 19 Mar 2023 06:59:57 +0000 (23:59 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 19 Mar 2023 06:59:57 +0000 (23:59 -0700)
index.html

index ddb1cecc4e11c7cf289f5620e3284a897f526943..56f2c2e2dfd9377d4e9cc230a92f81b7863b15a6 100644 (file)
 
       for (let fn of fns) {
         fn = fn.trim();
+        if (fn === '') {
+          continue;
+        }
         const { name, parametersTypes } = splitFunction(fn);
         const { functionName, hash } = calculateOptimizedName(name, parametersTypes, minimum);
         console.log(functionName, hash);
This page took 0.042014 seconds and 4 git commands to generate.