Explicitly return None from guess_project_path
@@ -514,11 +514,11 @@ class Linter(metaclass=LinterMeta):
@staticmethod
def _guess_project_path(window, filename):
if not window:
- return
+ return None
folders = window.folders()
if not folders:
- return
+ return None
if not filename:
return folders[0]
@@ -528,6 +528,8 @@ class Linter(metaclass=LinterMeta):
if filename.startswith(folder + os.path.sep):
return folder
+ return None
+
@classmethod
def assign(cls, view, linter_name=None, reset=False):
"""
