Skip to content

Commit

Permalink
refactor(flextime): improve name of entry start date helper
Browse files Browse the repository at this point in the history
  • Loading branch information
aibor committed Aug 21, 2024
1 parent ccd18c6 commit 8098bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/flextime/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

type daySums = twext.Groups[string, time.Duration]

func groupByStartDate(entry twext.Entry) string {
func startDate(entry twext.Entry) string {
return entry.Start.Format(time.DateOnly)
}

Expand Down Expand Up @@ -99,7 +99,7 @@ func run(inR io.ReadSeeker, outW, errW io.Writer) error {

return printSums(
newPrinter(outW, cfg),
twext.Group(entries, groupByStartDate, sumDuration),
twext.Group(entries, startDate, sumDuration),
)
}

Expand Down

0 comments on commit 8098bef

Please sign in to comment.