mirror of
https://github.com/wneessen/go-hibp.git
synced 2024-12-22 18:20:38 +01:00
Fixed mixed pointer/copy assignment in ApiDate type
This commit is contained in:
parent
540e745c7f
commit
a8623f1162
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue