Skip to content

Commit

Permalink
linting corrections #901
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Apr 19, 2021
1 parent 8724b9a commit 4095c62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ export class NodeContextMenuController
onShowNodeContextMenu(path: string, nodeType: string, mouseX: number, mouseY: number) {
this._viewModel.codeMapNode = getCodeMapNodeFromPath(path, nodeType, this.codeMapPreRenderService.getRenderMap())
this._viewModel.showNodeContextMenu = true
if (areAllNodesExcluded(this.codeMapPreRenderService.getRenderMap())) {
this._viewModel.isAllExcluded = true
} else {
this._viewModel.isAllExcluded = false
}
this._viewModel.isAllExcluded = areAllNodesExcluded(this.codeMapPreRenderService.getRenderMap()) ? true : false

const { x, y } = this.calculatePosition(mouseX, mouseY)
this.setPosition(x, y)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ export class SearchBarController implements BlacklistSubscriber, SearchPatternSu
this._viewModel.isPatternExcluded = this.isPatternBlacklisted(blacklist, BlacklistType.exclude)
this._viewModel.isPatternHidden = this.isPatternBlacklisted(blacklist, BlacklistType.flatten)

if (areAllNodesExcluded(this.codeMapPreRenderService.getRenderMap())) {
this._viewModel.isEverythingExcluded = true
} else {
this._viewModel.isEverythingExcluded = false
}
this._viewModel.isEverythingExcluded = areAllNodesExcluded(this.codeMapPreRenderService.getRenderMap()) ? true : false
}

private isPatternBlacklisted(blacklist: BlacklistItem[], blacklistType: BlacklistType) {
Expand Down

0 comments on commit 4095c62

Please sign in to comment.