Skip to content

Commit a41aa01

Browse files
committed
Solve two SonarCloud smells
1 parent 2ed6819 commit a41aa01

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedGroupAddNewGridItem.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import org.schabi.newpipe.databinding.FeedGroupAddNewGridItemBinding
77

88
class FeedGroupAddNewGridItem : BindableItem<FeedGroupAddNewGridItemBinding>() {
99
override fun getLayout(): Int = R.layout.feed_group_add_new_grid_item
10-
override fun bind(viewBinding: FeedGroupAddNewGridItemBinding, position: Int) {}
1110
override fun initializeViewBinding(view: View) = FeedGroupAddNewGridItemBinding.bind(view)
11+
override fun bind(viewBinding: FeedGroupAddNewGridItemBinding, position: Int) {
12+
// this is a static item, nothing to do here
13+
}
1214
}

app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedGroupAddNewItem.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import org.schabi.newpipe.databinding.FeedGroupAddNewItemBinding
77

88
class FeedGroupAddNewItem : BindableItem<FeedGroupAddNewItemBinding>() {
99
override fun getLayout(): Int = R.layout.feed_group_add_new_item
10-
override fun bind(viewBinding: FeedGroupAddNewItemBinding, position: Int) {}
1110
override fun initializeViewBinding(view: View) = FeedGroupAddNewItemBinding.bind(view)
11+
override fun bind(viewBinding: FeedGroupAddNewItemBinding, position: Int) {
12+
// this is a static item, nothing to do here
13+
}
1214
}

0 commit comments

Comments
 (0)