file_storage: Don't return an error if the print doesn't exist

We may just try to remove something isn't there so it's not an actual
error from our POV.
This commit is contained in:
Marco Trevisan (Treviño)
2020-12-16 22:04:12 +01:00
committed by Benjamin Berg
parent eece834231
commit c685f0d34c

View File

@ -238,6 +238,9 @@ file_storage_print_data_delete (FpDevice *dev, FpFinger finger, const char *user
path = get_path_to_print_dscv (dev, finger, base_store);
if (!g_file_test (path, G_FILE_TEST_EXISTS))
return 0;
r = g_unlink (path);
g_debug ("file_storage_print_data_delete(): unlink(\"%s\") %s",
path, g_strerror (r));