Skip to content

Commit

Permalink
fix: add Init method on backward compat
Browse files Browse the repository at this point in the history
I broke the API eventho I didn't meant to, I thought I was safe because the gorelease bot didn't reported anything but it seems to be wrong:
#33 (comment)

> gocompat says:
> ```
> Your branch is up to date with 'origin/master'.
> ```
  • Loading branch information
Jorropo committed Dec 19, 2023
1 parent 661da59 commit 144e9ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions asn.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,5 @@ func (backwardCompat) AsnForIPv6(ip net.IP) (string, error) {
}
return strconv.FormatUint(uint64(asn), 10), nil
}

func (backwardCompat) Init() {}

Check warning on line 93 in asn.go

View check run for this annotation

Codecov / codecov/patch

asn.go#L93

Added line #L93 was not covered by tests

0 comments on commit 144e9ad

Please sign in to comment.