Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fixed storage.getVisited() is always true warning. (#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
daoshengmu authored and keianhzo committed Jul 23, 2019
1 parent 250a1fd commit 469033c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class HistoryStore constructor(val context: Context) {
}

fun isInHistory(aURL: String): CompletableFuture<Boolean> = GlobalScope.future {
storage.getVisited(listOf(aURL)) != null
storage.getVisited(listOf(aURL)).size != 0
}

private fun notifyListeners() {
Expand Down

0 comments on commit 469033c

Please sign in to comment.