From 233a6b1cf48fa462052038ab394be6f0b89f6a7e Mon Sep 17 00:00:00 2001 From: Alec Sears Date: Thu, 10 Oct 2019 15:12:56 -0500 Subject: [PATCH] Fix codespell error --- src/datasource-zabbix/responseHandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datasource-zabbix/responseHandler.js b/src/datasource-zabbix/responseHandler.js index ab9174e..85bce2c 100644 --- a/src/datasource-zabbix/responseHandler.js +++ b/src/datasource-zabbix/responseHandler.js @@ -26,7 +26,7 @@ function convertHistory(history, items, addHostName, convertPointCallback) { var grouped_history = _.groupBy(history, 'itemid'); var hosts = _.uniqBy(_.flatten(_.map(items, 'hosts')), 'hostid'); //uniqBy is needed to deduplicate - return _.map(grouped_history, function(hist, itemid) { + return _.map(grouped_history, function(historyPoint, itemid) { var item = _.find(items, {'itemid': itemid}); var alias = item.name; if (_.keys(hosts).length > 1 && addHostName) { //only when actual multi hosts selected @@ -35,7 +35,7 @@ function convertHistory(history, items, addHostName, convertPointCallback) { } return { target: alias, - datapoints: _.map(hist, convertPointCallback) + datapoints: _.map(historyPoint, convertPointCallback) }; }); }