Skip to content

Commit

Permalink
Remove unnecessary conditional from print action
Browse files Browse the repository at this point in the history
  • Loading branch information
stefaniereuter authored and dsarmany committed Jan 15, 2025
1 parent 68d90cc commit 5b6b262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multio/action/print/Print.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Print::Print(const ComponentConfiguration& compConf) : ChainedAction(compConf) {

void Print::executeImpl(message::Message msg) {
ASSERT(os_);
bool doOutput = onlyFields_ ? msg.tag() == message::Message::Tag::Field ? true : false : true;
bool doOutput = onlyFields_ ? (msg.tag() == message::Message::Tag::Field) : true;
if (doOutput) {
if (!prefix_.empty()) {
(*os_) << prefix_ << ": ";
Expand Down

0 comments on commit 5b6b262

Please sign in to comment.