Skip to content

Commit

Permalink
Collapse when statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Oct 29, 2024
1 parent d0ce635 commit dfe2eda
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,10 @@ private fun Content(
onCellClicked = onEnableClicked,
onInfoClicked =
when (state.apiAccessMethod) {
ApiAccessMethod.Bridges -> null
is ApiAccessMethod.CustomProxy.Shadowsocks -> null
is ApiAccessMethod.CustomProxy.Socks5Remote -> null
ApiAccessMethod.Direct -> null
ApiAccessMethod.EncryptedDns -> onNavigateToEncryptedDnsInfoDialog
ApiAccessMethod.Bridges,
is ApiAccessMethod.CustomProxy,
ApiAccessMethod.Direct -> null
},
)
if (!state.isDisableable) {
Expand Down

0 comments on commit dfe2eda

Please sign in to comment.