Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 58342ca

Browse files
authored
Fix suspicious indentation in Migrations.kt (#1956)
1 parent d65fc88 commit 58342ca

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

app/src/main/java/dev/msfjarvis/aps/util/settings/Migrations.kt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ private fun migrateToGitUrlBasedConfig(sharedPrefs: SharedPreferences, gitSettin
4848
"$userPart$hostnamePart:$serverPath"
4949
} else {
5050
// Only absolute paths are supported with custom ports.
51-
if (!serverPath.startsWith('/')) null
52-
else
53-
// We have to specify the ssh scheme as this is the only way to pass a custom
54-
// port.
55-
"ssh://$userPart$hostnamePart$portPart$serverPath"
51+
if (!serverPath.startsWith('/')) {
52+
null
53+
} else {
54+
// We have to specify the ssh scheme as this is the only way to pass a custom
55+
// port.
56+
"ssh://$userPart$hostnamePart$portPart$serverPath"
57+
}
5658
}
5759
}
5860
Protocol.Https -> {

0 commit comments

Comments
 (0)