Skip to content

Commit 884bbc0

Browse files
committed
Missing brackets around the 'or' clauses in the 'if self._limited' block of logic
1 parent 7e00b7e commit 884bbc0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/murfey/client/analyser.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,7 @@ def _analyse(self, transferred_file: Path):
358358
if (
359359
"Metadata" in transferred_file.parts
360360
or transferred_file.name == "EpuSession.dm"
361-
and not self._context
362-
):
361+
) and not self._context:
363362
if not (context := _get_context("SPAMetadataContext")):
364363
return
365364
self._context = context.load()(
@@ -372,8 +371,7 @@ def _analyse(self, transferred_file: Path):
372371
"Batch" in transferred_file.parts
373372
or "SearchMaps" in transferred_file.parts
374373
or transferred_file.name == "Session.dm"
375-
and not self._context
376-
):
374+
) and not self._context:
377375
if not (context := _get_context("TomographyMetadataContext")):
378376
return
379377
self._context = context.load()(

0 commit comments

Comments
 (0)