[or-cvs] petty cleanups

Nick Mathewson nickm at freehaven.net
Tue Apr 25 07:04:18 UTC 2006


On Tue, Apr 25, 2006 at 03:00:06AM -0400, arma at seul.org wrote:
 [...]
> -  if (!desc_routerinfo || !desc_clean_since) {
> +  if (!desc_routerinfo || !desc_clean_since)
>      if (router_rebuild_descriptor(!desc_routerinfo))
>        return NULL;
> -  }

Actually, I like the braces in these cases.  It means that if we add
elses later, no further braces are needed, as opposed to 
  if (A)
   if (B)
     x;
  else (C)
     y;

which is the canonical "who knows what that means anyway" parse.

No need to shift back in this case; just an IMO. 

yrs,
-- 
Nick Mathewson



More information about the tor-commits mailing list