diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 2e3d32515..a3f29d2b9 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -687,7 +687,7 @@ class Git(FetchMethod):
         Return True if git-lfs can be found, False otherwise.
         """
         import shutil
-        return shutil.which("git-lfs", path=d.getVar('PATH')) is not None
+        return shutil.which("git-lfs", path=d.getVar('PATH'))

     def _get_repo_url(self, ud):
         """
