Skip to content

Commit 635c96a

Browse files
committed
fix sonar scan
1 parent bcad919 commit 635c96a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/src/main/java/de/datlag/burningseries/adapter/AllSeriesRecyclerAdapter.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,7 @@ class AllSeriesRecyclerAdapter(
3131
}
3232

3333
override fun areContentsTheSame(oldItem: GenreModel, newItem: GenreModel): Boolean {
34-
return if (oldItem is GenreData && newItem is GenreData) {
35-
oldItem.hashCode() == newItem.hashCode()
36-
} else if (oldItem is GenreItem && newItem is GenreItem) {
37-
oldItem.hashCode() == newItem.hashCode()
38-
} else {
39-
oldItem.hashCode() == newItem.hashCode()
40-
}
34+
return oldItem.hashCode() == newItem.hashCode()
4135
}
4236
}
4337

0 commit comments

Comments
 (0)