Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Feb 26, 2023
1 parent dcac187 commit 4848bc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ open class WallpapersDataViewModel(application: Application) : AndroidViewModel(
}
}
if (!areTheSame) return false
val difference = ArrayList<T>(remote).apply { removeAll(local) }.size
val difference = ArrayList<T>(remote).apply { removeAll(local.toSet()) }.size
return difference <= 0 && remote.size == local.size
} catch (e: Exception) {
return false
Expand Down

0 comments on commit 4848bc1

Please sign in to comment.