From e6a116d14edbdb7ee5af144e5735846676bbeef1 Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertn@the-nelsons.org>
Date: Thu, 5 Dec 2013 20:12:20 -0800
Subject: [PATCH] Fix warnings from 'make minify' + other bugs

---
 src/compression/jxg.js | 5 +----
 src/encoding/armor.js  | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/compression/jxg.js b/src/compression/jxg.js
index 220dc1d7..814ceda2 100644
--- a/src/compression/jxg.js
+++ b/src/compression/jxg.js
@@ -353,9 +353,6 @@ JXG.Util.Unzip = function(barray) {
         X = currentTree[xtreepos];
       }
     }
-    if (debug)
-      document.write("ret3");
-    return -1;
   };
 
   function DeflateLoop() {
@@ -797,7 +794,7 @@ JXG.Util.Unzip = function(barray) {
         CRC = 0xffffffff;
         SIZE = 0;
 
-        if (size = 0 && fileOut.charAt(fileout.length - 1) == "/") {
+        if (size == 0 && fileOut.charAt(fileout.length - 1) == "/") {
           //skipdir
           if (debug)
             alert("skipdir");
diff --git a/src/encoding/armor.js b/src/encoding/armor.js
index 1a539882..e78542d2 100644
--- a/src/encoding/armor.js
+++ b/src/encoding/armor.js
@@ -225,7 +225,7 @@ function dearmor(text) {
       util.print_error("Ascii armor integrity check on message failed: '" + splittedtext[2]
         .split('\n\n')[1]
         .split("\n=")[1]
-        .split('\n')[0] + "' should be '" + getCheckSum(result.data)) + "'";
+        .split('\n')[0] + "' should be '" + getCheckSum(result.data) + "'");
       return false;
     }
   } else {