Avoid redundant invocation of 'findTopDir'
ClosedPublic

Authored by mgsloan on Jul 19 2018, 12:44 AM.

Details

Summary

While working on D904, I noticed that
'findTopDir' was being invoked three times. This isn't a big problem, because
it is usually very cheap. On windows, it does require some involved logic,
though, so to me it would make sense to only run it once.

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mgsloan created this revision.Jul 19 2018, 12:44 AM
monoidal accepted this revision.Jul 20 2018, 9:52 AM
This revision is now accepted and ready to land.Jul 20 2018, 9:52 AM
This revision was automatically updated to reflect the committed changes.