Deptartment Of Superfluous Code

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();
                            }
This entry was posted in Coding. Bookmark the permalink.

One Response to Deptartment Of Superfluous Code

  1. brennen says:

    Well, at least it’s not a switch.

Leave a Reply

Your email address will not be published. Required fields are marked *