Skip to content

Commit a7ef637

Browse files
committed
Dead conditional.
1 parent ac7cf79 commit a7ef637

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

referencing/_core.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ def anchors_at(self, uri: str) -> PMap[str, AnchorType]:
177177

178178
def _crawl(self) -> Registry:
179179
registry = self
180-
resources: list[tuple[str, IdentifiedResource]] = [
181-
(uri, self._contents[uri][0]) for uri in self._uncrawled
182-
]
180+
resources = [(uri, self._contents[uri][0]) for uri in self._uncrawled]
183181
while resources:
184182
base_uri, resource = resources.pop()
185183
if resource.resource is True or resource.resource is False:
@@ -195,11 +193,7 @@ def _crawl(self) -> Registry:
195193
anchors = resource.anchors()
196194
registry = registry.with_anchors(uri=uri, anchors=anchors)
197195

198-
resources.extend(
199-
(uri, each)
200-
for each in resource.subresources()
201-
if each is not True and each is not False
202-
)
196+
resources.extend((uri, each) for each in resource.subresources())
203197
return evolve(registry, uncrawled=s())
204198

205199
def resolver(self, root: Schema, specification: Specification) -> Resolver:

0 commit comments

Comments
 (0)