Skip to content

Commit 5c56351

Browse files
Copilotalexr00
andcommitted
Remove unused _pollingDuration field and fix reference
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 52b1015 commit 5c56351

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/notifications/notificationsManager.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export class NotificationsManager extends Disposable implements vscode.TreeDataP
4747
private _fetchNotifications: boolean = false;
4848
private _notifications = new Map<string, NotificationTreeItem>();
4949

50-
private _pollingDuration: number = 60; // Default polling duration
5150
private _pollingHandler: NodeJS.Timeout | null;
5251
private _pollingLastModified: string;
5352

@@ -202,7 +201,7 @@ export class NotificationsManager extends Disposable implements vscode.TreeDataP
202201
}
203202

204203
public async getNotifications(): Promise<INotificationTreeItems | undefined> {
205-
let pollInterval = this._pollingDuration;
204+
let pollInterval = this._getRefreshInterval();
206205
let lastModified = this._pollingLastModified;
207206
if (this._fetchNotifications) {
208207
// Get raw notifications

0 commit comments

Comments
 (0)