Skip to content

Commit

Permalink
AnalyticsOptimizations: Fixes for code climate issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhyder committed Mar 1, 2016
1 parent d54c5d5 commit 12ffc5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions include/system/analytics_manager.js
Expand Up @@ -116,11 +116,9 @@ module.exports = function AnalyticsManagerModule(pb) {
* providers.
*/
AnalyticsManager.prototype.gatherData = function(req, session, ls, cb) {
var site = this.site;
var timeout = this.timeout

//retrieve keys and ensure there are providers to process
var providerKeys = AnalyticsManager.getKeys(site);
var providerKeys = AnalyticsManager.getKeys(this.site);
if (providerKeys.length === 0) {
return cb(null, DEFAULT_RESULT);
}
Expand Down Expand Up @@ -151,7 +149,7 @@ module.exports = function AnalyticsManagerModule(pb) {

return function(callback) {
if (pb.log.isSilly()) {
pb.log.silly("AnalyticsManager: Rendering provider [%s] for URL [%s:%s]", keys[i], req.method, req.url);
pb.log.silly("AnalyticsManager: Rendering provider [%s] for URL [%s:%s]", key, req.method, req.url);
}

//build context object for builder functions to have access to params
Expand Down
3 changes: 0 additions & 3 deletions plugins/ga/ga.js
Expand Up @@ -17,9 +17,6 @@

module.exports = function (pb) {

//pb dependencies
var util = pb.util;

/**
* GoogleAnalytics - A sample for exemplifying what the main module file should
* look like.
Expand Down

0 comments on commit 12ffc5a

Please sign in to comment.