Removed a redundant check
This commit is contained in:
parent
e8bf3da053
commit
f76b271d24
1 changed files with 1 additions and 2 deletions
|
|
@ -738,8 +738,7 @@ amount_t::value(const bool primary_only,
|
||||||
if (has_commodity() &&
|
if (has_commodity() &&
|
||||||
(! primary_only || ! commodity().has_flags(COMMODITY_PRIMARY))) {
|
(! primary_only || ! commodity().has_flags(COMMODITY_PRIMARY))) {
|
||||||
if (in_terms_of &&
|
if (in_terms_of &&
|
||||||
(commodity() == *in_terms_of ||
|
commodity().referent() == in_terms_of->referent()) {
|
||||||
commodity().referent() == in_terms_of->referent())) {
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
else if (has_annotation() && annotation().price &&
|
else if (has_annotation() && annotation().price &&
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue