Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Rename local variable
Browse files Browse the repository at this point in the history
Co-authored-by: Grant Linville <grant@acorn.io>
Signed-off-by: Nick Hale <4175918+njhale@users.noreply.github.com>
  • Loading branch information
njhale and g-linville committed Jul 14, 2023
1 parent 7517912 commit 139d7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/registry/apigroups/acorn/events/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ var (
func parseTime(raw string) (*internalv1.MicroTime, error) {
var errs []error
for _, layout := range supportedLayouts {
since, err := time.Parse(layout, raw)
t, err := time.Parse(layout, raw)
if err == nil {
return z.P(internalv1.NewMicroTime(since)), nil
return z.P(internalv1.NewMicroTime(t)), nil
}

errs = append(errs, err)
Expand Down

0 comments on commit 139d7c8

Please sign in to comment.