saves one unnecessary compare which is also a small regression (#21413)

saves one unnecessary compare which is also a sall regression

follow up d30c6419a0
This commit is contained in:
ringabout
2023-02-22 06:42:28 +08:00
committed by GitHub
parent 0a45543cc1
commit a3603c8a6e

View File

@@ -143,7 +143,7 @@ proc processModule*(graph: ModuleGraph; module: PSym; idgen: IdGenerator;
while true:
openParser(p, fileIdx, s, graph.cache, graph.config)
if not belongsToStdlib(graph, module) or (belongsToStdlib(graph, module) and module.name.s == "distros"):
if (not belongsToStdlib(graph, module)) or module.name.s == "distros":
# XXX what about caching? no processing then? what if I change the
# modules to include between compilation runs? we'd need to track that
# in ROD files. I think we should enable this feature only