From 108f3a93e2f016483fd460288db9cac5817b3143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Thu, 27 Mar 2014 15:07:21 +0100 Subject: [PATCH] Package: Update to latest grunt-contrib-jshint Fix to lint errors in cache and packer, both abusing the comma operator. --- lib/cache.js | 2 +- lib/packer.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cache.js b/lib/cache.js index f858f1c8..7d7367bd 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -2,7 +2,7 @@ var Cache, cacheCron, cacheCronTimeout, cacheExpiresTime, caches, logger = require( "simple-log" ).init( "download.jqueryui.com" ); cacheExpiresTime = 0; -caches = [], +caches = []; cacheCron = function() { var currentTime = Date.now(); diff --git a/lib/packer.js b/lib/packer.js index c7366a83..638f152b 100644 --- a/lib/packer.js +++ b/lib/packer.js @@ -11,7 +11,7 @@ var indexTemplate, themeImagesCache, sqwish = require( "sqwish" ), util = require( "./util" ); -indexTemplate = handlebars.compile( fs.readFileSync( __dirname + "/../template/zip/index.html", "utf8" ) ), +indexTemplate = handlebars.compile( fs.readFileSync( __dirname + "/../template/zip/index.html", "utf8" ) ); themeImagesCache = {}; function stripThemeImport( src ) { diff --git a/package.json b/package.json index 613c7e98..98f14dc8 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "grunt": "0.4.1", "grunt-check-modules": "0.2.0", "grunt-contrib-handlebars": "0.5.7", - "grunt-contrib-jshint": "0.2.0", + "grunt-contrib-jshint": "0.9.2", "grunt-contrib-uglify": "0.2.0", "handlebars": "1.0.12", "lzma": "1.2.1",