Skip to content

Commit

Permalink
Fixed detekt warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Sep 27, 2024
1 parent 9e85e4a commit 16e28ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class SiteListItemBuilder @Inject constructor(
}

fun buildSelfHostedUserListItemIfAvailable(site: SiteModel, onClick: (ListItemAction) -> Unit): ListItem? {
// TODO: Should this excluded JetPack users?
// TODO Should this excluded JetPack users?
return if (selfHostedUsersFeatureConfig.isEnabled() && site.selfHostedSiteId > 0) {
ListItem(
R.drawable.ic_user_white_24dp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ object SampleUsers {
url = "example.com",
)

@Suppress("MagicNumber")
fun getSampleUsers(): ArrayList<UserWithEditContext> {
if (sampleUserList.isEmpty()) {
repeat(25) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class UserListViewModel @Inject constructor(
val users = _users.asStateFlow()

// TODO this uses dummy data for now - no network request is involved yet
@Suppress("MagicNumber")
fun fetchUsers() {
showProgressDialog(R.string.loading)
_users.value = listOf()
Expand Down

0 comments on commit 16e28ae

Please sign in to comment.