Skip to content

Commit

Permalink
Fix warning from clang-tidy.
Browse files Browse the repository at this point in the history
Original code is left there, commented out, since the intent isn't clear.
  • Loading branch information
sa666666 committed Jun 15, 2024
1 parent 903f376 commit b477cb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/debugger/gui/CartJANEWidget.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ string CartridgeJANEWidget::hotspotStr(int bank, int, bool prefix)

info << (prefix ? "(hotspot " : "(")
<< "$" << Common::Base::HEX1 << (hotspot + (bank < 2 ? bank : bank + 6))
<< (prefix ? ")" : ")");
<< ")";
// << (prefix ? ")" : ")"); TODO: misc-redundant-expression
// same logic for true and false

return info.str();
}

0 comments on commit b477cb5

Please sign in to comment.