Mercurial > hg
comparison hgeditor @ 30870:c5bee6aa4971
unbundle: swap conditional branches for clarity
This is a small style update for clarity. The previous situation was:
if foo:
50 lines
else:
2 lines
In such case I tend to invert these to get the simpler branch out of the way
earlier:
if not foo:
2 lines
else:
50 lines
This makes the conditional and various alternatives fit on the same screen,
simpler to read overall.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 02 Feb 2017 10:53:55 +0100 |
parents | 1aee2ab0f902 |
children |
comparison
equal
deleted
inserted
replaced
30869:887de9516138 | 30870:c5bee6aa4971 |
---|