Skip to content

Commit

Permalink
Fixed scenario where 'finished_at' was null (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
LachlanMcKee authored Sep 2, 2020
1 parent 1840ec0 commit 8e8d0d9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data class BuildsData(
val buildNumber: Int,
val buildSlug: String,
val triggeredAt: String,
val finishedAt: String,
val finishedAt: String?,
val originalEnvironmentValueList: List<EnvironmentValue>
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data class BuildsResponse(
val buildNumber: Int,
val slug: String,
val triggeredAt: String,
val finishedAt: String,
val finishedAt: String?,
@SerializedName("original_build_params.environments")
val originalEnvironmentValueList: List<EnvironmentValue>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ internal data class TestResultModel(
val status: String,
val commitHash: String,
val triggeredAt: String,
val finishedAt: String,
val finishedAt: String?,
val buildSlug: String,
val jobName: String?
)
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ internal class TestResultsListScreen(
br()
}

text("${build.triggeredAt} - ${build.finishedAt}")
text(build.triggeredAt)

if (build.finishedAt != null) {
text(" - ${build.finishedAt}")
}

br()
br()
Expand Down

0 comments on commit 8e8d0d9

Please sign in to comment.