Skip to content

Commit

Permalink
fix sonar scan
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Jun 25, 2022
1 parent bcad919 commit 635c96a
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ class AllSeriesRecyclerAdapter(
}

override fun areContentsTheSame(oldItem: GenreModel, newItem: GenreModel): Boolean {
return if (oldItem is GenreData && newItem is GenreData) {
oldItem.hashCode() == newItem.hashCode()
} else if (oldItem is GenreItem && newItem is GenreItem) {
oldItem.hashCode() == newItem.hashCode()
} else {
oldItem.hashCode() == newItem.hashCode()
}
return oldItem.hashCode() == newItem.hashCode()
}
}

Expand Down

0 comments on commit 635c96a

Please sign in to comment.