Fix suspicious indentation in Migrations.kt (#1956)
This commit is contained in:
parent
d65fc88a14
commit
58342ca426
1 changed files with 7 additions and 5 deletions
|
@ -48,11 +48,13 @@ private fun migrateToGitUrlBasedConfig(sharedPrefs: SharedPreferences, gitSettin
|
||||||
"$userPart$hostnamePart:$serverPath"
|
"$userPart$hostnamePart:$serverPath"
|
||||||
} else {
|
} else {
|
||||||
// Only absolute paths are supported with custom ports.
|
// Only absolute paths are supported with custom ports.
|
||||||
if (!serverPath.startsWith('/')) null
|
if (!serverPath.startsWith('/')) {
|
||||||
else
|
null
|
||||||
// We have to specify the ssh scheme as this is the only way to pass a custom
|
} else {
|
||||||
// port.
|
// We have to specify the ssh scheme as this is the only way to pass a custom
|
||||||
"ssh://$userPart$hostnamePart$portPart$serverPath"
|
// port.
|
||||||
|
"ssh://$userPart$hostnamePart$portPart$serverPath"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Protocol.Https -> {
|
Protocol.Https -> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue