SonarOpenCommunity / sonar-cxx

Unnecessary elif / else block after continue PYL-R1724
Style
Major
6 months agoa year old
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it
284                return False # partly
285            token = tokens[-1]
286            if token != expression:
287                if expression in self.rules:288                    branch.append(expression)
289                    if not self.__match_sequences(branch, self.rules[expression], tokens):
290                        branch.pop()