Skip to content

Commit

Permalink
Nandle null values in last change field
Browse files Browse the repository at this point in the history
  • Loading branch information
resterle committed Apr 23, 2024
1 parent fa70c33 commit f5bd2a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion turniere/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ func Parse(reader io.Reader) []Turnament {
case Location:
r.Location = extractText(t)
case Changed:
r.Changed = *extractDate(t, dateTimeFormat)
a := extractDate(t, dateTimeFormat)
if a != nil {
r.Changed = *a
}
case Series:
r.Series = extractSeries(t)
}
Expand Down

0 comments on commit f5bd2a9

Please sign in to comment.