From 58342ca426ab57b22555dc393e74cd6bbbff444c Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 14 Jun 2022 13:53:25 +0530 Subject: Fix suspicious indentation in Migrations.kt (#1956) --- .../main/java/dev/msfjarvis/aps/util/settings/Migrations.kt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'app') 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 -> { -- cgit v1.2.3