Skip to content

Commit bd8d6b8

Browse files
committed
Drop the redundant empty-domain guard in onDomainClick
`getDomainDetailsUrl()` already returns null when `domain` is empty, so the `?: return` on the following argument covers the case.
1 parent ef3f4dd commit bd8d6b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WordPress/src/main/java/org/wordpress/android/ui/domains/DomainsDashboardViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class DomainsDashboardViewModel @Inject constructor(
242242
private fun onDomainClick(allDomainItem: AllDomainItem) {
243243
_onNavigation.value = Event(
244244
OpenDomainManagement(
245-
allDomainItem.domain.ifEmpty { return },
245+
allDomainItem.domain,
246246
allDomainItem.getDomainDetailsUrl() ?: return
247247
)
248248
)

0 commit comments

Comments
 (0)