Skip to content

Commit

Permalink
fix vet complaint (#831)
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Deitcher <avi@deitcher.net>
  • Loading branch information
deitch committed Nov 17, 2020
1 parent d4a7f2f commit 50fe4c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/v1/mutate/mutate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func TestMutateConfig(t *testing.T) {
func TestMutateCreatedAt(t *testing.T) {
source := sourceImage(t)
want := time.Now().Add(-2 * time.Minute)
result, err := mutate.CreatedAt(source, v1.Time{want})
result, err := mutate.CreatedAt(source, v1.Time{Time: want})
if err != nil {
t.Fatalf("CreatedAt: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/v1/random/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func Image(byteSize, layers int64) (v1.Image, error) {
Author: "random.Image",
Comment: fmt.Sprintf("this is a random history %d of %d", i, layers),
CreatedBy: "random",
Created: v1.Time{time.Now()},
Created: v1.Time{Time: time.Now()},
},
})
}
Expand Down

0 comments on commit 50fe4c4

Please sign in to comment.