diff options
author | Andrew MacFie <amacfie@sent.com> | 2021-01-14 16:46:11 -0500 |
---|---|---|
committer | Andrew MacFie <amacfie@sent.com> | 2021-01-14 16:46:11 -0500 |
commit | e0b66589fab295f0df5d568b11051e9321930283 (patch) | |
tree | 2de8b9b1f1040040f4094f47f41b1cee96e5e849 /qutebrowser/completion | |
parent | 29ef17a735ee763b8d1f70225afd2013f6e1efb3 (diff) | |
download | qutebrowser-e0b66589fab295f0df5d568b11051e9321930283.tar.gz qutebrowser-e0b66589fab295f0df5d568b11051e9321930283.zip |
Remove lint (whoops)
Diffstat (limited to 'qutebrowser/completion')
-rw-r--r-- | qutebrowser/completion/models/filepathcategory.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qutebrowser/completion/models/filepathcategory.py b/qutebrowser/completion/models/filepathcategory.py index b61f73287..4382044a4 100644 --- a/qutebrowser/completion/models/filepathcategory.py +++ b/qutebrowser/completion/models/filepathcategory.py @@ -40,9 +40,8 @@ class FilePathCategory(QAbstractListModel): Args: val: The user's partially typed URL/path. """ - - if val == '': - self._paths = [os.path.expanduser('~') ] + if not val: + self._paths = [os.path.expanduser('~')] elif len(val) >= 1 and val[0] in ['~', '/']: glob_str = os.path.expanduser(glob.escape(val)) + '*' self._paths = sorted(glob.glob(glob_str)) @@ -61,4 +60,4 @@ class FilePathCategory(QAbstractListModel): def rowCount(self, *_args: Any) -> int: """Implement abstract method in QAbstractListModel.""" - return len(self._paths)
\ No newline at end of file + return len(self._paths) |