1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Refactor some downloadSources code.

This commit is contained in:
Cedric Beust 2017-04-03 09:54:26 -07:00
parent 1c27b9f1e4
commit bb2eb19876
2 changed files with 15 additions and 23 deletions

View file

@ -47,7 +47,8 @@ class GetDependencyGraphHandler : WebSocketListener {
}
private fun findProfiles(map: Map<String, List<String>>) = map[PARAMETER_PROFILES]?.getOrNull(0)
private fun findDownloadSources(map: Map<String, List<String>>) = map[PARAMETER_DOWNLOAD_SOURCES]?.getOrNull(0)?.toBoolean() ?: false
private fun findDownloadSources(map: Map<String, List<String>>) = map[PARAMETER_DOWNLOAD_SOURCES]
?.getOrNull(0)?.toBoolean() ?: false
private fun findBuildFile(map: Map<String, List<String>>) : BuildSources? {
val projectRoot = map[PARAMETER_PROJECT_ROOT]