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

Commit

Permalink
Rename parseTimeBound parameter
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Slaton <54378333+tylerslaton@users.noreply.github.com>
Signed-off-by: Nick Hale <4175918+njhale@users.noreply.github.com>
  • Loading branch information
njhale and tylerslaton committed Jul 14, 2023
1 parent fd9b4d2 commit 81b16b5
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 @@ -250,12 +250,12 @@ func stripQuery(opts storage.ListOptions) (q query, stripped storage.ListOptions
return
}

func parseTimeBound(raw string, now internalv1.MicroTime, lower bool) (*internalv1.MicroTime, error) {
func parseTimeBound(raw string, now internalv1.MicroTime, since bool) (*internalv1.MicroTime, error) {
// Try to parse raw as a duration string
var errs []error
duration, err := time.ParseDuration(raw)
if err == nil {
if lower {
if since {
duration *= -1
}

Expand Down

0 comments on commit 81b16b5

Please sign in to comment.