Removed an invalid assertion
This commit is contained in:
parent
b6adc8f460
commit
f9de33d21c
1 changed files with 4 additions and 1 deletions
|
|
@ -137,7 +137,10 @@ void account_t::add_post(post_t * post)
|
||||||
|
|
||||||
bool account_t::remove_post(post_t * post)
|
bool account_t::remove_post(post_t * post)
|
||||||
{
|
{
|
||||||
assert(! posts.empty());
|
// It's possible that 'post' wasn't yet in this account, but try to
|
||||||
|
// remove it anyway. This can happen if there is an error during
|
||||||
|
// parsing, when the posting knows what it's account is, but
|
||||||
|
// xact_t::finalize has not yet added that posting to the account.
|
||||||
posts.remove(post);
|
posts.remove(post);
|
||||||
post->account = NULL;
|
post->account = NULL;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue