In DiamondLoupeFacet, we have a boolean continueLoop used to determine whether we should initialise the facet or not. If it is true, we end up here which skips the initialisation process below it as we have already been there before:
if (continueLoop) {
continueLoop = false;
continue;
}
The continueLoop reset to false is unnecessary as we do it on each new iteration anyway:
for (uint256 selectorIndex; selectorIndex < selectorCount; selectorIndex++) {
bytes4 selector = ds.selectors[selectorIndex];
address facetAddress_ = ds.facetAddressAndSelectorPosition[selector].facetAddress;
bool continueLoop = false;
...
In
DiamondLoupeFacet, we have a booleancontinueLoopused to determine whether we should initialise the facet or not. If it is true, we end up here which skips the initialisation process below it as we have already been there before:The
continueLoopreset to false is unnecessary as we do it on each new iteration anyway: