Skip to content

Commit

Permalink
chore: address sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs committed Jan 24, 2025
1 parent bf89963 commit 86f5bf4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,8 @@ class RetryQueue implements IQueue<QueueItemData> {
* Adds an item to the retry queue
*
* @param {Object} qItem The item to process
* @param {Error} [error] The error that occurred during processing
*/
requeue(qItem: QueueItem<QueueItemData>, error?: Error) {
requeue(qItem: QueueItem<QueueItemData>) {
const { attemptNumber, item, type, id } = qItem;
// Increment the attempt number as we're about to retry
const attemptNumberToUse = attemptNumber + 1;
Expand Down Expand Up @@ -487,7 +486,7 @@ class RetryQueue implements IQueue<QueueItemData> {
this.setStorageEntry(IN_PROGRESS, inProgress);

if (err) {
this.requeue(el, err);
this.requeue(el);
}
};

Expand Down
1 change: 0 additions & 1 deletion packages/analytics-js/src/app/RudderAnalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
} from '@rudderstack/analytics-js-common/types/LoadOptions';
import type { ApiCallback, ApiOptions } from '@rudderstack/analytics-js-common/types/EventApi';
import type { ApiObject } from '@rudderstack/analytics-js-common/types/ApiObject';
import { RSA } from '@rudderstack/analytics-js-common/constants/loggerContexts';
import type { IdentifyTraits } from '@rudderstack/analytics-js-common/types/traits';
import { generateUUID } from '@rudderstack/analytics-js-common/utilities/uuId';
import { onPageLeave } from '@rudderstack/analytics-js-common/utilities/page';
Expand Down
1 change: 0 additions & 1 deletion packages/analytics-js/src/state/slices/dataPlaneEvents.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { signal } from '@preact/signals-core';
import type { DataPlaneEventsState } from '@rudderstack/analytics-js-common/types/ApplicationState';
import type { PluginName } from '@rudderstack/analytics-js-common/types/PluginsManager';

const dataPlaneEventsState: DataPlaneEventsState = {
deliveryEnabled: signal(true), // Delivery should always happen
Expand Down

0 comments on commit 86f5bf4

Please sign in to comment.