Skip to content

Commit

Permalink
Add nullability annotation to help with Kotlin conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
sictiru committed Aug 30, 2024
1 parent 8c96e3c commit ba1264f
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ abstract class Reading : NbActivity(), OnPageChangeListener, ScrollChangeListene
get() {
// saved stories and global shared stories don't have unreads
if (fs!!.isAllSaved || fs!!.isGlobalShared) return 0
val result = dbHelper.getUnreadCount(fs, intelState)
val result = dbHelper.getUnreadCount(fs!!, intelState)
return if (result < 0) 0 else result
}

Expand Down
Loading

0 comments on commit ba1264f

Please sign in to comment.