Sep 17 2008

Deptartment Of Superfluous Code

Published by at 10:43 am under Coding

Am I missing something here? ’cause it sure looks like an “or” would have served this better than an else if.

                            if (tokenInfo.IsParentCalculation)
                            {
                                LoopTableSave();
                                GetValue(tokenInfo.Id);
                                LoopTableRestore();
                            }
                            else if (tokenInfo.AliasOf != 0)
                            {
                                LoopTableSave();
                                GetValue(tokenInfo.Id);
                                LoopTableRestore();
                            }

One response so far

One Response to “Deptartment Of Superfluous Code”

  1. brennenon 22 Sep 2008 at 12:33 pm

    Well, at least it’s not a switch.

Trackback URI | Comments RSS

Leave a Reply