Skip to content

Commit

Permalink
Use correct return type
Browse files Browse the repository at this point in the history
  • Loading branch information
marsavar authored and NovemberTang committed Sep 22, 2023
1 parent 568047e commit fe5d76d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ case class FastlyComputeTasks(s3Package: S3Path)(implicit
client: FastlyApiClient,
resources: DeploymentResources,
stopFlag: => Boolean
): Try[Unit] = {
): Try[Int] = {
for {
activeVersionNumber <-
Try(getActiveVersionNumber(client, resources.reporter, stopFlag))
Expand Down
3 changes: 1 addition & 2 deletions magenta-lib/src/main/scala/magenta/tasks/FastlyTasks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ case class UpdateFastlyConfig(s3Package: S3Path)(implicit
client: FastlyApiClient,
resources: DeploymentResources,
stopFlag: => Boolean
): Try[Unit] = {
): Try[Int] = {
for {
activeVersionNumber <- Try(
getActiveVersionNumber(client, resources.reporter, stopFlag)
Expand Down Expand Up @@ -79,7 +79,6 @@ case class UpdateFastlyConfig(s3Package: S3Path)(implicit
)
)
} yield nextVersionNumber

}

override def execute(
Expand Down

0 comments on commit fe5d76d

Please sign in to comment.