Skip to content

Commit

Permalink
adds ktlint formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rishiranjjan committed Nov 5, 2024
1 parent 17bc9ec commit 96ace65
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/main/kotlin/com/personio/synthetics/builder/api/StepBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,24 @@ class StepBuilder(
return if (waitDuration != null) buildWaitStep() else buildRequestStep()
}

private fun buildWaitStep() = SyntheticsAPIStep(
SyntheticsAPIWaitStep()
.name(name)
.subtype(SyntheticsAPIWaitStepSubtype.WAIT)
.value(waitDuration),
)
private fun buildWaitStep() =
SyntheticsAPIStep(
SyntheticsAPIWaitStep()
.name(name)
.subtype(SyntheticsAPIWaitStepSubtype.WAIT)
.value(waitDuration),
)

private fun buildRequestStep() = SyntheticsAPIStep(
step.syntheticsAPITestStep
.request(request)
.allowFailure(allowFailure)
.retry(retryOptions)
.name(name)
.assertions(assertions)
.subtype(SyntheticsAPITestStepSubtype.HTTP),
)
private fun buildRequestStep() =
SyntheticsAPIStep(
step.syntheticsAPITestStep
.request(request)
.allowFailure(allowFailure)
.retry(retryOptions)
.name(name)
.assertions(assertions)
.subtype(SyntheticsAPITestStepSubtype.HTTP),
)

/**
* Sets the HTTP request for the synthetic test
Expand Down

0 comments on commit 96ace65

Please sign in to comment.