Skip to content

Commit

Permalink
Removed abomination πŸ‘
Browse files Browse the repository at this point in the history
  • Loading branch information
Samoxive committed Jan 9, 2018
1 parent 1406cd6 commit 6717b85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class CommentListener: JobService() {
)

bookmarks.map {
// for the love of god, make this abomination of a line prettier before submission
val cursor = contentResolver.query(CommentRecord.buildImageCommentsUri(CommentRecord.getIdThingy(it)), CommentRecord.COLUMNS, null, null, null)
val uri = CommentRecord.buildImageCommentsUri(CommentRecord.getIdThingy(it))
val cursor = contentResolver.query(uri, CommentRecord.COLUMNS, null, null, null)
Triple(it, Imgur.getComments(contentResolver, cursor, it), ImgurApi.getComments(it))
}.filter {
val (_, oldComments, newComments) = it
Expand Down

0 comments on commit 6717b85

Please sign in to comment.