Skip to content

Commit c847a15

Browse files
committed
refactor: 移除多余的 DAO 数据复制异常捕获
从 `copyDaoData` 方法中移除了对 `SQLiteException` 的捕获,因为外层调用者已经处理了此异常。
1 parent a6d0262 commit c847a15

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • app/src/main/java/com/hippo/ehviewer

app/src/main/java/com/hippo/ehviewer/EhDB.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -895,9 +895,6 @@ private static <T> boolean copyDao(AbstractDao<T, ?> from, AbstractDao<T, ?> to)
895895
}
896896
} catch (IOException e) {
897897
return false;
898-
} catch (SQLiteException e) {
899-
Log.e(TAG, "Failed to copy DAO data", e);
900-
return false;
901898
}
902899
return true;
903900
}

0 commit comments

Comments
 (0)