diff options
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/dev/msfjarvis/aps/util/settings/Migrations.kt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/src/main/java/dev/msfjarvis/aps/util/settings/Migrations.kt b/app/src/main/java/dev/msfjarvis/aps/util/settings/Migrations.kt index b96e538f..7e91ab41 100644 --- a/app/src/main/java/dev/msfjarvis/aps/util/settings/Migrations.kt +++ b/app/src/main/java/dev/msfjarvis/aps/util/settings/Migrations.kt @@ -48,11 +48,13 @@ private fun migrateToGitUrlBasedConfig(sharedPrefs: SharedPreferences, gitSettin "$userPart$hostnamePart:$serverPath" } else { // Only absolute paths are supported with custom ports. - if (!serverPath.startsWith('/')) null - else - // We have to specify the ssh scheme as this is the only way to pass a custom - // port. - "ssh://$userPart$hostnamePart$portPart$serverPath" + if (!serverPath.startsWith('/')) { + null + } else { + // We have to specify the ssh scheme as this is the only way to pass a custom + // port. + "ssh://$userPart$hostnamePart$portPart$serverPath" + } } } Protocol.Https -> { |