Remove Redundant Continue¶
Sourcery refactoring id:
mylist2 =  for i in mylist: if i != 2: mylist2.append(i) else: continue
mylist2 =  for i in mylist: if i != 2: mylist2.append(i)
continue is not followed by any other statements in a
loop then it is not necessary, so can be removed. Removing unnecessary lines
declutters the code and makes it easier to understand. This refactoring will
only be triggered if it unlocks further improvements.