Skip to content

Commit

Permalink
Redundant nullptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Mar 21, 2024
1 parent be346c3 commit 69d4145
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Handler
*/
void setOutputStream(ReadWriteStream* stream, bool owned = true)
{
if(outputStream != nullptr && ownedStream) {
if(ownedStream) {
delete outputStream;
}

Expand Down

0 comments on commit 69d4145

Please sign in to comment.