Skip to content

Commit 48f34dd

Browse files
committed
bug fixed from count.js
1 parent da793bd commit 48f34dd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sprint-3/2-practice-tdd/count.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ function countChar(stringOfCharacters, findCharacter) {
88
if (wantedChar === findCharacter) {
99
numberOfChar++;
1010
}
11-
if (numberOfChar === 0) {
12-
return 0;
13-
}
1411
}
1512
return numberOfChar;
1613
}

0 commit comments

Comments
 (0)