Skip to content

Commit c258fc2

Browse files
committed
fix: remove unused notifications parameter from createNotificationItem
1 parent 423ed27 commit c258fc2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/popup/notification-renderer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,9 @@ function positionHoverCard(listItem) {
223223
* @param {Object} notif - Notification object
224224
* @param {HTMLElement} repoHeader - Repository header element
225225
* @param {string} repoFullName - Repository full name
226-
* @param {Array} notifications - All notifications array
227226
* @returns {HTMLElement} Notification list item element
228227
*/
229-
function createNotificationItem(notif, repoHeader, repoFullName, notifications) {
228+
function createNotificationItem(notif, repoHeader, repoFullName) {
230229
const { notificationsList, emptyState, markAllBtn, getShowHoverCards, sendMessage, onUserAction } = config;
231230
const showHoverCards = getShowHoverCards();
232231

@@ -524,7 +523,7 @@ export function renderNotifications(notifications, shouldResort = true) {
524523
notificationsList.appendChild(repoHeader);
525524

526525
for (const notif of group.notifications) {
527-
const li = createNotificationItem(notif, repoHeader, repoFullName, notifications);
526+
const li = createNotificationItem(notif, repoHeader, repoFullName);
528527
notificationsList.appendChild(li);
529528
}
530529
}

0 commit comments

Comments
 (0)