Skip to content

Commit

Permalink
Merge pull request pezy#63 from Mlieou/master
Browse files Browse the repository at this point in the history
remove redundant 'else'
  • Loading branch information
pezy authored Jul 19, 2016
2 parents df20982 + 3ed83b7 commit 92a1956
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 92a1956

Please sign in to comment.