mirror of
https://github.com/wneessen/go-hibp.git
synced 2024-11-22 21:00:51 +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
|
// Time adds a Time() method to the ApiDate converted time.Time type
|
||||||
func (d ApiDate) Time() time.Time {
|
func (d *ApiDate) Time() time.Time {
|
||||||
return time.Time(d)
|
dp := *d
|
||||||
|
return time.Time(dp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// setBreachOpts returns a map of default settings and overridden values from different BreachOption
|
// setBreachOpts returns a map of default settings and overridden values from different BreachOption
|
||||||
|
|
Loading…
Reference in a new issue