3891: Remove unnecessary if (use "this.hashtag" consistently)

This commit is contained in:
Lakoja 2023-08-07 10:12:57 +02:00
parent 6bd1c234d2
commit 35fd702472
1 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ class StatusListActivity : BottomSheetActivity(), HasAndroidInjector {
*/ */
private fun updateMuteTagMenuItems() { private fun updateMuteTagMenuItems() {
val tag = hashtag ?: return val tag = hashtag ?: return
val hashedTag = if (tag.startsWith('#')) tag else "#$tag" val hashedTag = "#$tag"
muteTagItem?.isVisible = true muteTagItem?.isVisible = true
muteTagItem?.isEnabled = false muteTagItem?.isEnabled = false
@ -230,7 +230,7 @@ class StatusListActivity : BottomSheetActivity(), HasAndroidInjector {
lifecycleScope.launch { lifecycleScope.launch {
var filterCreateSuccess = false var filterCreateSuccess = false
val hashedTag = if (tag.startsWith('#')) tag else "#$tag" val hashedTag = "#$tag"
mastodonApi.createFilter( mastodonApi.createFilter(
title = "#$tag", title = "#$tag",