Mysterious Code

While reviewing my own code today, I actually came across something like this:

Given that A and B are mutually exclusive

if(A) {
  something1;
  if(B) {
    something2;
  }
  something3;
}

I really think there must be something wrong with my brain.

/Random Thoughts/