0

ReSharper 8.1 sometimes fails to optimise duplicate branches

I'm using ReSharper 8.1.23.546 and in some cases, ReSharper doesn't optimise duplicate branches. For example, ReSharper doesn't suggest anything for the following block:

bool test = bool.Parse("True");

if (test)
    Console.WriteLine();
else
    Console.WriteLine();


However, ReSharper does generate suggestions for the following code:


int a;
if (test)
    a = 1;
else
    a = 1;


Cheers,

Simon

0 comments

Please sign in to leave a comment.