Clean up some build warning
This commit is contained in:
parent
cf4280b887
commit
302fdfe979
3 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
package mihon.core.migration
|
||||
|
||||
import io.mockk.Called
|
||||
import io.mockk.slot
|
||||
import io.mockk.spyk
|
||||
import io.mockk.verify
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue