summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rplugin/python3/deoplete/parent.py2
-rw-r--r--rplugin/python3/deoplete/source/file.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/rplugin/python3/deoplete/parent.py b/rplugin/python3/deoplete/parent.py
index 3a283f8..97a8658 100644
--- a/rplugin/python3/deoplete/parent.py
+++ b/rplugin/python3/deoplete/parent.py
@@ -173,7 +173,7 @@ class AsyncParent(_Parent):
return (True, False, [])
self._queue_id = ''
results = get[0]
- return (results['is_async'], results['is_async'], # type: ignore
+ return (results['is_async'], results['is_async'],
results['merged_results']) if results else (False, [])
def _put(self, name: str,
diff --git a/rplugin/python3/deoplete/source/file.py b/rplugin/python3/deoplete/source/file.py
index 910dde6..2aa1dff 100644
--- a/rplugin/python3/deoplete/source/file.py
+++ b/rplugin/python3/deoplete/source/file.py
@@ -56,7 +56,7 @@ class Source(Base):
else './')
p = self._longest_path_that_exists(context, input_str)
- if p in (None, []) or p == '/' or re.search('//+$', p):
+ if not p or p == '/' or re.search('//+$', p):
return []
complete_str = self._substitute_path(context, dirname(p) + '/')
if not os.path.isdir(complete_str):