1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed 1e92cd5

workbench: remove redundant test of existence before closing tab

If the index is valid, RepoWidget should be returned.

  • Participants
  • Parent commits 44768f9
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/workbench.py

View file
  • Ignore whitespace
         if 0 <= index < tw.count():
             w = tw.widget(index)
             reporoot = w.repo.root
-            if w and w.closeRepoWidget():
+            if w.closeRepoWidget():
                 tw.removeTab(index)
                 w.deleteLater()
                 self.updateMenu()