aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-06-14 13:53:25 +0530
committerGitHub <noreply@github.com>2022-06-14 08:23:25 +0000
commit58342ca426ab57b22555dc393e74cd6bbbff444c (patch)
tree9451f5e1350bf5ce4cee7189fe90db28a61df101 /app/src/main
parentd65fc88a149aa543c272f088febf21dad9c55cf8 (diff)
Fix suspicious indentation in Migrations.kt (#1956)
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/dev/msfjarvis/aps/util/settings/Migrations.kt12
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 -> {