Remove unneeded parentheses.
authorXhmikosR <xhmikosr@users.sourceforge.net>
Thu, 29 Aug 2013 14:36:16 +0000 (17:36 +0300)
committerXhmikosR <xhmikosr@users.sourceforge.net>
Thu, 29 Aug 2013 14:44:00 +0000 (17:44 +0300)
lib/clean.js
lib/imports/inliner.js

index aca621a..9a6d780 100644 (file)
@@ -32,9 +32,8 @@ var CleanCSS = {
     options.keepBreaks = options.keepBreaks || false;
 
     //active by default
-    if (options.processImport === undefined) {
+    if (options.processImport === undefined)
       options.processImport = true;
-    }
 
     // replace function
     if (options.debug) {
@@ -82,9 +81,8 @@ var CleanCSS = {
       });
 
       // strip comments with inlined imports
-      if (data.indexOf('/*') > -1) {
+      if (data.indexOf('/*') > -1)
         removeComments();
-      }
     }
 
     // strip parentheses in urls if possible (no spaces inside)
index 9b73345..5f49aea 100644 (file)
@@ -81,9 +81,8 @@ module.exports = function Inliner() {
 
       tempData.push(data.substring(cursor, nextStart));
       var url = data.substring(nextStart + 4, nextEnd).replace(/['"]/g, '');
-      if (url[0] != '/' && url.indexOf('data:') !== 0 && url.substring(url.length - 4) != '.css') {
+      if (url[0] != '/' && url.indexOf('data:') !== 0 && url.substring(url.length - 4) != '.css')
         url = path.relative(toBase, path.join(fromBase, url)).replace(/\\/g, '/');
-      }
       tempData.push('url(' + url + ')');
       cursor = nextEnd + 1;
     }