This is an archive of the discontinued Mercurial Phabricator instance.

nodetree: simplify a conditionnal in shortesthexnodeidprefix
ClosedPublic

Authored by marmoute on Dec 13 2019, 3:11 PM.

Details

Summary

instead of try to catch some attribute error, we could just nicely look if the
attribute will be available. This make the code simpler to follow and less error
prone since we no longer rely on a wider attribute catching.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped