From 16d11c660eaa67902f70c92cbdeb240fe3e5af9d Mon Sep 17 00:00:00 2001
From: yairm210 <yairm210@hotmail.com>
Date: Mon, 2 Dec 2024 14:46:07 +0200
Subject: [PATCH] chore: detekt lint

---
 .../transients/CapitalConnectionsFinder.kt    | 20 +++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/core/src/com/unciv/logic/civilization/transients/CapitalConnectionsFinder.kt b/core/src/com/unciv/logic/civilization/transients/CapitalConnectionsFinder.kt
index e61e6296a6..43d605ec4c 100644
--- a/core/src/com/unciv/logic/civilization/transients/CapitalConnectionsFinder.kt
+++ b/core/src/com/unciv/logic/civilization/transients/CapitalConnectionsFinder.kt
@@ -17,11 +17,11 @@ class CapitalConnectionsFinder(private val civInfo: Civilization) {
     private val openBordersCivCities = civInfo.gameInfo.getCities().filter { canEnterBordersOf(it.civ) }
 
     companion object {
-        private val harbor = "Harbor"   // hardcoding at least centralized for this class for now
+        private const val HARBOR = "Harbor"   // hardcoding at least centralized for this class for now
         private val road = RoadStatus.Road.name
         private val railroad = RoadStatus.Railroad.name
-        private val harborFromRoad = "$harbor-$road"
-        private val harborFromRailroad = "$harbor-$railroad"
+        private val harborFromRoad = "$HARBOR-$road"
+        private val harborFromRailroad = "$HARBOR-$railroad"
     }
 
     private val ruleset = civInfo.gameInfo.ruleset
@@ -62,18 +62,18 @@ class CapitalConnectionsFinder(private val civInfo: Civilization) {
 
     private fun checkRoad(cityToConnectFrom: City) {
         check(
-                cityToConnectFrom,
-                transportType = road,
-                overridingTransportType = railroad,
-                tileFilter = { tile -> tile.hasConnection(civInfo) }
+            cityToConnectFrom,
+            transportType = road,
+            overridingTransportType = railroad,
+            tileFilter = { tile -> tile.hasConnection(civInfo) }
         )
     }
 
     private fun checkRailroad(cityToConnectFrom: City) {
         check(
-                cityToConnectFrom,
-                transportType = railroad,
-                tileFilter = { tile -> tile.getUnpillagedRoad() == RoadStatus.Railroad }
+            cityToConnectFrom,
+            transportType = railroad,
+            tileFilter = { tile -> tile.getUnpillagedRoad() == RoadStatus.Railroad }
         )
     }