chore: ran make fmt

This commit is contained in:
Jef Roosens 2022-05-08 14:53:35 +02:00
parent 4b172cb5d8
commit e79d18100f
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
2 changed files with 12 additions and 14 deletions

View file

@ -57,15 +57,15 @@ pub mut:
struct ContainerState {
pub:
running bool [json: Running]
status string [json: Status]
exit_code int [json: ExitCode]
running bool [json: Running]
status string [json: Status]
exit_code int [json: ExitCode]
// These use a rather specific format so they have to be parsed later
start_time_str string [json: StartedAt]
end_time_str string [json: FinishedAt]
end_time_str string [json: FinishedAt]
pub mut:
start_time time.Time [skip]
end_time time.Time [skip]
end_time time.Time [skip]
}
fn docker_timestamp_to_time(s string) ?time.Time {
@ -88,7 +88,7 @@ pub fn inspect_container(id string) ?ContainerInspect {
data.state.start_time = docker_timestamp_to_time(data.state.start_time_str) ?
if data.state.status == "exited" {
if data.state.status == 'exited' {
data.state.end_time = docker_timestamp_to_time(data.state.end_time_str) ?
}