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
commit a3603c8a6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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