Skip to content

Commit

Permalink
integrated comments from pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Peva Blanchard committed Jun 12, 2024
1 parent 372c2fd commit 09b24df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ class SensitivityAnalysisTask(
symbolTable.getTemplate(
processName,
matchLabels
)!! // We are called from a process, so it must exist
) ?: throw IllegalStateException("Symbol table: cannot find process '$processName$matchLabels'")
val sourceOps = DefaultDataSourceOperations(
with(LcaacConfigExtensions()) { project.lcaacConfig() },
ops,
project.basePath!!,
project.basePath ?: throw IllegalStateException("Current project misses a base path"),
)
val (arguments, parameters) =
prepareArguments(ops, sourceOps, symbolTable, template.params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import java.nio.file.Path

class LcaacConfigExtensions {
fun Project.lcaacConfig(): LcaacConfig {
val workingDirectory = this.basePath ?: TODO()
val workingDirectory = this.basePath ?: throw IllegalStateException("Current project misses a base path")
val candidates = listOf("lcaac.yaml", "lcaac.yml")
return runReadAction {
candidates.firstNotNullOfOrNull { filename ->
Expand Down

0 comments on commit 09b24df

Please sign in to comment.