From dd7b7afb63fd045b902391a4756a38cb21a897c8 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Mon, 2 Mar 2020 09:29:26 +0000
Subject: [PATCH] RF: remover dupe call to update

---
 fsl/utils/filetree/query.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fsl/utils/filetree/query.py b/fsl/utils/filetree/query.py
index 56ba6cc49..a2e215c84 100644
--- a/fsl/utils/filetree/query.py
+++ b/fsl/utils/filetree/query.py
@@ -373,7 +373,7 @@ def scan(tree : FileTree) -> List[Match]:
 
             filename = tree.update(**variables).get(template)
 
-            if not op.isfile(tree.update(**variables).get(template)):
+            if not op.isfile(filename):
                 continue
 
             matches.append(Match(filename, template, tree, variables))
-- 
GitLab