Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ca41f33

Browse files
arnavbfacchinm
authored andcommittedOct 29, 2018
Removed explicit check for true/false
1 parent e04d90c commit ca41f33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎api/Stream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ bool Stream::findUntil(char *target, size_t targetLen, char *terminator, size_t
115115
{
116116
if (terminator == NULL) {
117117
MultiTarget t[1] = {{target, targetLen, 0}};
118-
return findMulti(t, 1) == 0 ? true : false;
118+
return findMulti(t, 1) == 0;
119119
} else {
120120
MultiTarget t[2] = {{target, targetLen, 0}, {terminator, termLen, 0}};
121-
return findMulti(t, 2) == 0 ? true : false;
121+
return findMulti(t, 2) == 0;
122122
}
123123
}
124124

0 commit comments

Comments
 (0)
Please sign in to comment.