Skip to content

Commit

Permalink
Fix tests and linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Oct 15, 2020
1 parent cfafbfc commit b9c5bee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion netenv/location_windows.go
Expand Up @@ -9,7 +9,8 @@ import (
"unsafe"
)

const (
// Windows specific constants for the WSAIoctl interface.
const ( //nolint:golint
SIO_RCVALL = syscall.IOC_IN | syscall.IOC_VENDOR | 1

RCVALL_OFF = 0
Expand Down
4 changes: 2 additions & 2 deletions profile/database.go
Expand Up @@ -22,8 +22,8 @@ const (

var (
profileDB = database.NewInterface(&database.Options{
Local: true,
Internal: true,
Local: true,
Internal: true,
})
)

Expand Down
8 changes: 4 additions & 4 deletions profile/endpoints/endpoint.go
Expand Up @@ -220,10 +220,6 @@ func parseEndpoint(value string) (endpoint Endpoint, err error) { //nolint:gocog
if endpoint, err = parseTypeIPRange(fields); endpoint != nil || err != nil {
return
}
// domain
if endpoint, err = parseTypeDomain(fields); endpoint != nil || err != nil {
return
}
// country
if endpoint, err = parseTypeCountry(fields); endpoint != nil || err != nil {
return
Expand All @@ -240,6 +236,10 @@ func parseEndpoint(value string) (endpoint Endpoint, err error) { //nolint:gocog
if endpoint, err = parseTypeList(fields); endpoint != nil || err != nil {
return
}
// domain
if endpoint, err = parseTypeDomain(fields); endpoint != nil || err != nil {
return
}

return nil, fmt.Errorf(`unknown endpoint definition: "%s"`, value)
}

0 comments on commit b9c5bee

Please sign in to comment.