check: duplicate code branches