Skip to content

Commit

Permalink
fix: eslint findings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed Oct 6, 2024
1 parent 5e69d06 commit 628a3d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions influxdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = function (RED) {
} else if (typeof value === 'number') {
point.floatField(name, value);
} else if (typeof value === 'string') {
// string values with numbers ending with 'i' are considered integers
// string values with numbers ending with 'i' are considered integers
if (isIntegerString(value)) {
value = parseInt(value.substring(0,value.length-1));
point.intField(name, value);
Expand Down Expand Up @@ -209,7 +209,6 @@ module.exports = function (RED) {
var client = this.influxdbConfig.client;

node.on("input", function (msg, send, done) {
var measurement;
var writeOptions = {};

var measurement = msg.hasOwnProperty('measurement') ? msg.measurement : node.measurement;
Expand Down Expand Up @@ -436,6 +435,7 @@ module.exports = function (RED) {
var query;
var rawOutput;
var queryOptions = {};
var queryPromise;
var precision;
var retentionPolicy;

Expand All @@ -457,9 +457,9 @@ module.exports = function (RED) {
}

if (rawOutput) {
var queryPromise = client.queryRaw(query, queryOptions);
queryPromise = client.queryRaw(query, queryOptions);
} else {
var queryPromise = client.query(query, queryOptions);
queryPromise = client.query(query, queryOptions);
}

queryPromise.then(function (results) {
Expand Down

0 comments on commit 628a3d3

Please sign in to comment.