From cf10b01b1f47fbd1575ed9c661436407ddffefc6 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Thu, 13 Oct 2022 12:14:35 +0200 Subject: [PATCH] type is a call --- lib/repository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repository.js b/lib/repository.js index 00ce320c1..64d566dcd 100644 --- a/lib/repository.js +++ b/lib/repository.js @@ -340,7 +340,7 @@ Repository.discover = function(startPath, acrossFs, ceilingDirs) { Repository.getReferences = function(repo, type, refNamesOnly) { return repo.getReferences().then(function(refList) { var filteredRefList = refList.filter(function(reference) { - return type === Reference.TYPE.ALL || reference.type === type; + return type === Reference.TYPE.ALL || reference.type( ) === type; }); if (refNamesOnly) {