Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Herwege <[email protected]>
  • Loading branch information
mherwege committed Dec 1, 2024
1 parent 302e333 commit d45cd3a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/items/item-persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { _toOpenhabPrimitiveType, _isTimeSeries } = require('../helpers');
const PersistenceExtensions = Java.type('org.openhab.core.persistence.extensions.PersistenceExtensions');
const TimeSeries = Java.type('org.openhab.core.types.TimeSeries');
const TypeParser = Java.type('org.openhab.core.types.TypeParser');
const RiemannType = Java.type('org.openhab..core.persistence.extensions.PersistenceExtensions.RiemannType')
const RiemannType = Java.type('org.openhab..core.persistence.extensions.PersistenceExtensions.RiemannType');

Check failure on line 9 in src/items/item-persistence.js

View workflow job for this annotation

GitHub Actions / build

'RiemannType' is assigned a value but never used

/**
* @typedef {import('@js-joda/core').ZonedDateTime} time.ZonedDateTime
Expand Down Expand Up @@ -681,11 +681,11 @@ class ItemPersistence {
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
* @returns {(PersistedState | null)} the Riemann sum until <code>timestamp</code> as {@link items.PersistedState} or <code>null</code> if no future states could be found
*/
riemannSumUntil (timestamp, riemannType, serviceId) {
return _persistedStateOrNull(PersistenceExtensions.riemannSumUntil(this.rawItem, ...arguments));
}
riemannSumUntil (timestamp, riemannType, serviceId) {
return _persistedStateOrNull(PersistenceExtensions.riemannSumUntil(this.rawItem, ...arguments));
}

/**
/**
* Gets the RiemannSum of the states of the state of a given Item between two certain points in time.
*
* @param {(time.ZonedDateTime | Date)} begin the point in time from which to start the Riemann sum
Expand All @@ -696,11 +696,11 @@ class ItemPersistence {
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
* @returns {(PersistedState | null)} the Riemann sum between <code>begin</code> and <code>end</code> as {@link items.PersistedState} or <code>null</code> if no states could be found
*/
riemannSumBetween (begin, end, riemannType, serviceId) {
return _persistedStateOrNull(PersistenceExtensions.riemannSumBetween(this.rawItem, ...arguments));
}
riemannSumBetween (begin, end, riemannType, serviceId) {
return _persistedStateOrNull(PersistenceExtensions.riemannSumBetween(this.rawItem, ...arguments));
}

/**
/**
* Gets the median value of the state of a given Item since a certain point in time.
*
* @example
Expand Down

0 comments on commit d45cd3a

Please sign in to comment.