mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Return error if parsing time string failed.
This commit is contained in:
parent
ddf0747327
commit
acb3d96c70
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ func TimeMatcher(dst *time.Time, format string) func(any) error {
|
|||
}
|
||||
t, err := time.Parse(format, s)
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
*dst = t
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue