From 75369c4bea550234782fbb84693dcad814a2c899 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 8 Jun 2016 17:43:51 +0800 Subject: [PATCH] src/Palete/Palete.vala --- src/Palete/Palete.vala | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/Palete/Palete.vala b/src/Palete/Palete.vala index bf2555637..0eca60566 100644 --- a/src/Palete/Palete.vala +++ b/src/Palete/Palete.vala @@ -403,25 +403,24 @@ namespace Palete state.showCompileResult(err); return ret; } - ret.set(line, errmsg); // depricated - this is used by the editor currently -- but we are planning to switch from taht. + ret.set(line, errmsg); // depricated - this is used by the editor currently -- but we are planning to switch from that.. print("got errors\n"); return ret; } + // now syntax is OK.. try the - if (ptype == "file") { - return this.validateJavascriptCompression(code); - } - print("no errors\n"); - return ret; + + + if (ptype == "file") { + this.validateJavascriptCompression(code); } - ret.set(line, errmsg); - print("got errors\n"); + print("no errors\n"); return ret; } - public Gee.HashMap validateJavascriptCompression(string code) + public void validateJavascriptCompression(string code) { // this uses the roojspacker code to try and compress the code. // it should highlight errors before we actually push live the code. -- 2.39.2