Clean up some build warning

This commit is contained in:
Cuong M. Tran 2024-06-04 17:03:11 +07:00
parent cf4280b887
commit 302fdfe979
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
3 changed files with 4 additions and 5 deletions

View file

@ -144,7 +144,7 @@ class SyncManager(
return
}
if (remoteBackup === syncData.backup){
if (remoteBackup === syncData.backup) {
// nothing changed
logcat(LogPriority.DEBUG) { "Skip restore due to remote was overwrite from local" }
syncPreferences.lastSyncTimestamp().set(Date().time)
@ -153,7 +153,7 @@ class SyncManager(
}
// Stop the sync early if the remote backup is null or empty
if (remoteBackup.backupManga?.size == 0) {
if (remoteBackup.backupManga.isEmpty()) {
notifier.showSyncError("No data found on remote server.")
return
}

View file

@ -1,6 +1,5 @@
package mihon.core.migration
import io.mockk.Called
import io.mockk.slot
import io.mockk.spyk
import io.mockk.verify

View file

@ -8,10 +8,10 @@ import tachiyomi.core.common.util.lang.withIOContext
* Util for evaluating JavaScript in sources.
*/
@Suppress("UNUSED", "UNCHECKED_CAST")
class JavaScriptEngine(context: Context) {
class JavaScriptEngine(@Suppress("UNUSED_PARAMETER") context: Context) {
/**
* Evaluate arbitrary JavaScript code and get the result as a primtive type
* Evaluate arbitrary JavaScript code and get the result as a primitive type
* (e.g., String, Int).
*
* @since extensions-lib 1.4