Skip to content

Commit

Permalink
remove redundant 'else'
Browse files Browse the repository at this point in the history
  • Loading branch information
mlieou committed Jul 19, 2016
1 parent df20982 commit 3ed83b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch05/ex5_21.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int main()
while (cin >> curr) {
if (!isupper(curr[0]))
continue;
else if (prev == curr) {
if (prev == curr) {
cout << curr << " occurs twice in succession." << endl;
no_twice = true;
break;
Expand Down

0 comments on commit 3ed83b7

Please sign in to comment.