Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove broken badge #73

Merged
merged 3 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

`mmdbinspect` - look up records for one or more IPs/networks in one or more .mmdb databases

[![Build Status](https://github.com/maxmind/mmdbinspect/workflows/Build/badge.svg)](https://github.com/maxmind/mmdbinspect/actions?query=workflow%3A%22Build%22)
[![Coverage Status](https://coveralls.io/repos/github/maxmind/mmdbinspect/badge.svg)](https://coveralls.io/github/maxmind/mmdbinspect)

<!-- vim-markdown-toc GFM -->

* [Usage](#usage)
Expand Down
2 changes: 1 addition & 1 deletion cmd/mmdbinspect/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func usage() {
)
flag.PrintDefaults()
fmt.Print(`
Any additional arguments passed are assumed to be networks to look up. If an
Any additional arguments passed are assumed to be networks to look up. If an
address range is not supplied, /32 will be assumed for ipv4 addresses and /128
will be assumed for ipv6 addresses.
`)
Expand Down
5 changes: 3 additions & 2 deletions pkg/mmdbinspect/mmdbinspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ func OpenDB(path string) (*maxminddb.Reader, error) {

if errors.Is(err, fs.ErrNotExist) {
return nil, fmt.Errorf("%v does not exist", path)
} else if err != nil {
}
if err != nil {
return nil, fmt.Errorf("stating %s: %w", path, err)
}

Expand All @@ -45,7 +46,7 @@ func OpenDB(path string) (*maxminddb.Reader, error) {
return db, nil
}

// RecordsForNetwork fetches mmdb records inside a given network. If an
// RecordsForNetwork fetches mmdb records inside a given network. If an
// address is provided without a netmask a /32 will be inferred for v4
// addresses and a /128 will be inferred for v6 addresses.
func RecordsForNetwork(reader maxminddb.Reader, includeAliasedNetworks bool, maybeNetwork string) (any, error) {
Expand Down
Loading