Skip to content

Commit ca41f33

Browse files
arnavbfacchinm
authored andcommitted
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

+2-2
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)