Skip to content

Commit

Permalink
Apply overrides only if they are set (#1166)
Browse files Browse the repository at this point in the history
* checking that execCmd and batchSizeForAnalyzer is not empty
  • Loading branch information
nulls authored Sep 5, 2022
1 parent 2fd153f commit 815b40d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ class ProjectView : AbstractView<ProjectExecutionRouteProps, ProjectViewState>(f
testSuiteIds = selectedTestSuiteIds,
files = state.files.map { it.toStorageKey() },
sdk = selectedSdk,
execCmd = state.execCmd,
batchSizeForAnalyzer = state.batchSizeForAnalyzer
execCmd = state.execCmd.takeUnless { it.isBlank() },
batchSizeForAnalyzer = state.batchSizeForAnalyzer.takeUnless { it.isBlank() }
)
submitRequest("/run/trigger?testingType=$testingType", jsonHeaders, Json.encodeToString(executionRequest))
}
Expand Down

0 comments on commit 815b40d

Please sign in to comment.