Skip to content

Commit

Permalink
Simplify, remove stale comment
Browse files Browse the repository at this point in the history
  • Loading branch information
robhogan authored Nov 26, 2024
1 parent 1c2550e commit 9f665fc
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,8 @@ public open class PackagerConnectionSettings(private val appContext: Context) {

public open var debugServerHttpProtocol: String
get() {
// Check host setting first. If empty try to detect emulator type and use default
// hostname for those
val tlsFromSettings = preferences.getBoolean(PREFS_DEBUG_SERVER_TLS_KEY, false)
if (tlsFromSettings) {
return "https"
}

return "http"
return if (tlsFromSettings) "https" else "http"
}

public open var debugServerWsProtocol: String
Expand Down

0 comments on commit 9f665fc

Please sign in to comment.