Skip to content

Commit d3a483e

Browse files
committed
refactor: proper constant name to reflect the value
- plus some clean-up for unused constants
1 parent 2cd3565 commit d3a483e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/kotlin/com/coder/toolbox/util/LinkMap.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ const val TOKEN = "token"
77
const val WORKSPACE = "workspace"
88
const val AGENT_NAME = "agent"
99
const val AGENT_ID = "agent_id"
10-
private const val FOLDER = "folder"
11-
private const val IDE_DOWNLOAD_LINK = "ide_download_link"
1210
private const val IDE_PRODUCT_CODE = "ide_product_code"
1311
private const val IDE_BUILD_NUMBER = "ide_build_number"
14-
private const val IDE_PATH_ON_HOST = "project_path"
12+
private const val PROJECT_PATH = "project_path"
1513

1614
// Helper functions for reading from the map. Prefer these to directly
1715
// interacting with the map.
@@ -28,10 +26,8 @@ fun Map<String, String?>.agentName() = this[AGENT_NAME]
2826

2927
fun Map<String, String?>.agentID() = this[AGENT_ID]
3028

31-
fun Map<String, String>.folder() = this[FOLDER]
32-
3329
fun Map<String, String>.ideProductCode() = this[IDE_PRODUCT_CODE]
3430

3531
fun Map<String, String>.ideBuildNumber() = this[IDE_BUILD_NUMBER]
3632

37-
fun Map<String, String>.projectPath() = this[IDE_PATH_ON_HOST]
33+
fun Map<String, String>.projectPath() = this[PROJECT_PATH]

0 commit comments

Comments
 (0)