mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 03:54:35 +00:00
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:
parent
0e20c6b7c9
commit
63765889d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user