summaryrefslogtreecommitdiff
path: root/src/mcd-storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mcd-storage.c')
-rw-r--r--src/mcd-storage.c8
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 */