diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-11-15 16:31:47 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-01-29 19:28:33 +0000 |
commit | 183af896db254c19eedc62ad58d5e2b08297791f (patch) | |
tree | 3a21005101d2d188a8c471f85145d55748e285b2 | |
parent | 50247324010cbe6fb9495db71f1feccbc517cdea (diff) |
mcd_storage_delete_account: don't tolerate deletion of unknown accounts
We should always know what we're deleting, now.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
-rw-r--r-- | src/mcd-storage.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mcd-storage.c b/src/mcd-storage.c index ba8420a6..d3bc5dae 100644 --- a/src/mcd-storage.c +++ b/src/mcd-storage.c @@ -1809,13 +1809,7 @@ mcd_storage_delete_account (McdStorage *self, g_return_if_fail (account != NULL); plugin = g_hash_table_lookup (self->accounts, account); - - if (plugin == NULL) - { - /* we wanted no account, we got no account, I call that success! */ - return; - } - + g_return_if_fail (plugin != NULL); /* FIXME: stop ignoring the error (if any), and make this method async * in order to pass the error up to McdAccount */ |