• Pieter Hintjens's avatar
    Problem: nodrop code is ugly · f15146b5
    Pieter Hintjens authored
    It's bad practice to start by testing all exceptional conditions
    and then dropping through to the 'normal' condition. Apart from
    being inefficient, it's deceptive to the user. Conditional code
    should always try to show the natural expectation of the code,
    with exceptional cases coming last.
    
    Solution: clean up this code.
    f15146b5
xpub.cpp 5.56 KB