Skip to content

Commit

Permalink
chore: reformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrunia committed Aug 8, 2021
1 parent 8291b49 commit 53509df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/provider/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func waitForPipelineUpToSucceeded(
latestUpExecutionStatus := continuousIntegrationStatus.LatestUpExecutionStatus
if latestUpExecutionStatus == SUCCEEDED {
done = true
continue;
continue
} else if strings.HasSuffix(latestUpExecutionStatus, FAILED) {
return fmt.Errorf("pipeline up status is %s", latestUpExecutionStatus)
}
Expand Down Expand Up @@ -112,13 +112,13 @@ func waitForPipelineInfrastructureUpdateComplete(
infrastructureStatus := status.InfrastructureStatus
if infrastructureStatus == UPDATE_COMPLETE {
done = true
continue;
continue
} else if infrastructureStatus == UPDATE_ROLLBACK_COMPLETE ||
strings.HasSuffix(infrastructureStatus, FAILED) {
return fmt.Errorf("pipeline infrastructure status is %s", infrastructureStatus)
}
}

if time.Since(start) > timeout {
return errors.New("timeout waiting for pipeline infrastructure update to complete")
}
Expand Down Expand Up @@ -150,7 +150,7 @@ func waitForPipelineInfrastructureNotFound(
if infrastructureStatus == NOT_FOUND {
if notFoundCount > 5 {
done = true
continue;
continue
}

notFoundCount = notFoundCount + 1
Expand Down

0 comments on commit 53509df

Please sign in to comment.