log number of items deleted even when no item was deleted at all

Bug: 137678815
Change-Id: I1cf23921f863a17433ba803158e489b54c1aa35d
This commit is contained in:
Pinyao Ting 2020-01-06 14:10:35 -08:00
parent 0fd48b51ba
commit fb9b779e9d
1 changed files with 1 additions and 3 deletions

View File

@ -114,9 +114,7 @@ public class RestoreDbTask {
}
try {
int itemsDeleted = db.delete(Favorites.TABLE_NAME, whereClause.toString(), profileIds);
if (itemsDeleted > 0) {
FileLog.d(TAG, itemsDeleted + " items from unrestored user(s) were deleted");
}
FileLog.d(TAG, itemsDeleted + " items from unrestored user(s) were deleted");
} catch (IllegalArgumentException exception) {
// b/147114476
FileLog.e(TAG, new StringBuilder("Failed to execute delete, where clause: '")