Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
remove condition that will never be true anyway
Browse files Browse the repository at this point in the history
auditors @bbondy @darkdh
  • Loading branch information
bridiver committed Apr 6, 2017
1 parent 77dd078 commit 5dedd3a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions app/common/state/extensionState.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,6 @@ const extensionState = {
browserActionUpdated: (state, action) => {
action = makeImmutable(action)
state = makeImmutable(state)
if (action.get('actionType') === windowConstants.WINDOW_SET_NAVIGATED &&
action.get('tabId')) {
let tabId = action.get('tabId')
let extensions = extensionState.getEnabledExtensions(state)
extensions && extensions.forEach((extension) => {
let tabs = extension.getIn(['browserAction', 'tabs'])
if (tabs && tabs.get(tabId)) {
tabs = tabs.set(tabId, Immutable.Map())
extension = extension.setIn(['browserAction', 'tabs'], tabs)
state = state.setIn(['extensions', extension.get('id')], extension)
}
})
return state
}
let extensionId = action.get('extensionId').toString()
let extension = extensionState.getExtensionById(state, extensionId)
if (extension && extension.get('browserAction')) {
Expand Down

1 comment on commit 5dedd3a

@darkdh
Copy link
Member

@darkdh darkdh commented on 5dedd3a Apr 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.