Fixed mixed pointer/copy assignment in ApiDate type

This commit is contained in:
Winni Neessen 2022-10-01 16:05:50 +02:00
parent 540e745c7f
commit a8623f1162
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -213,8 +213,9 @@ func (d *ApiDate) UnmarshalJSON(s []byte) error {
}
// Time adds a Time() method to the ApiDate converted time.Time type
func (d ApiDate) Time() time.Time {
return time.Time(d)
func (d *ApiDate) Time() time.Time {
dp := *d
return time.Time(dp)
}
// setBreachOpts returns a map of default settings and overridden values from different BreachOption