Bug 1773993 - [devtools] Remove unused removeIds variable in addMessage. r=ochameau.

Nothing was added to the array, so we can remove it.

Differential Revision: https://phabricator.services.mozilla.com/D149138
This commit is contained in:
Nicolas Chevobbe 2022-06-15 12:57:08 +00:00
parent 0e20c6b7c9
commit 63765889d4

View File

@ -173,8 +173,6 @@ function addMessage(newMessage, state, filtersState, prefsState, uiState) {
newMessage.indent = parentGroups.length;
}
const removedIds = [];
// Check if the current message could be placed in a Warning Group.
// This needs to be done before setting the new message in mutableMessagesById so we have a
// proper message.
@ -361,7 +359,7 @@ function addMessage(newMessage, state, filtersState, prefsState, uiState) {
state.networkMessagesUpdateById[newMessage.actor] = newMessage;
}
return removeMessagesFromState(state, removedIds);
return state;
}
// eslint-disable-next-line complexity