From d4f2a70f83a2ee6fbbb580a81fc22094e0f354fe Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Sun, 12 Feb 2017 08:36:50 -0500 Subject: [PATCH] Slightly simplify CompletionModel.new_item. There was no need to have a branch based on whether the misc value was None or not. --- qutebrowser/completion/models/base.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qutebrowser/completion/models/base.py b/qutebrowser/completion/models/base.py index 1d3ed2be4..5e2c78c5a 100644 --- a/qutebrowser/completion/models/base.py +++ b/qutebrowser/completion/models/base.py @@ -79,10 +79,7 @@ class CompletionModel(QStandardItemModel): nameitem = QStandardItem(name) descitem = QStandardItem(desc) - if misc is None: - miscitem = QStandardItem() - else: - miscitem = QStandardItem(misc) + miscitem = QStandardItem(misc) cat.appendRow([nameitem, descitem, miscitem])