Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
bohendo committed Oct 5, 2023
1 parent 17f55e6 commit 66eef37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/digitalocean/digitalocean.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func GetDropletById(config config.Config, id int64) (Droplet, error) {
return Droplet{}, fmt.Errorf("Failed to fetch droplet IP: %w", err)
}

return Droplet{
return Droplet{
Name: dropletInfo.Name,
ID: int64(dropletInfo.ID),
IP: pubIp,
Expand Down
6 changes: 3 additions & 3 deletions pkg/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ func GetJobIdsByInstance(config config.Config, bucketName string) (map[int64][]i
return instanceToJobIds, nil
}
for _, job := range existingState.Jobs {
if job.Droplet.ID == 0 {
return nil, fmt.Errorf("Uninitialized droplet id for job %v", job.ID)
}
if job.Droplet.ID == 0 {
return nil, fmt.Errorf("Uninitialized droplet id for job %v", job.ID)
}
instanceToJobIds[job.Droplet.ID] = append(instanceToJobIds[job.Droplet.ID], job.ID)
}
return instanceToJobIds, nil
Expand Down

0 comments on commit 66eef37

Please sign in to comment.