perf: Identical inner 'if' condition is always true (outer condition is 'sc.atLineEnd' and inner condition is 'sc.atLineEnd').

This commit is contained in:
joker2770 2022-10-29 20:12:14 +08:00
parent 4442bcb34e
commit e7e187b125
1 changed files with 1 additions and 4 deletions

View File

@ -255,10 +255,7 @@ static void ColouriseAU3Doc(Sci_PositionU startPos,
if (sc.atLineEnd) {
ci=0;
if (strcmp(s, "#ce")== 0 || strcmp(s, "#comments-end")== 0) {
if (sc.atLineEnd)
sc.SetState(SCE_AU3_DEFAULT);
else
sc.SetState(SCE_AU3_COMMENTBLOCK);
}
break;
}