file_storage: Do not remove the finger path two times

Return the actual operation error instead
This commit is contained in:
Marco Trevisan (Treviño)
2020-12-16 21:39:44 +01:00
committed by Benjamin Berg
parent 3faaa81257
commit eece834231

View File

@ -243,7 +243,7 @@ file_storage_print_data_delete (FpDevice *dev, FpFinger finger, const char *user
path, g_strerror (r)); path, g_strerror (r));
/* FIXME: cleanup empty directory */ /* FIXME: cleanup empty directory */
return g_unlink (path); return r;
} }
static GSList * static GSList *