fix linting mistakes

This commit is contained in:
Benjamin George Roberts 2022-09-07 21:39:56 +10:00
parent 548551c6ae
commit 688cba7292
2 changed files with 8 additions and 10 deletions

View file

@ -109,7 +109,7 @@ func (policy ACLPolicy) IsZero() bool {
return false
}
// Returns the list of autoApproving namespaces, groups or tags for a given IPPrefix
// Returns the list of autoApproving namespaces, groups or tags for a given IPPrefix.
func (autoApprovers *AutoApprovers) GetRouteApprovers(
prefix netip.Prefix,
) ([]string, error) {
@ -121,7 +121,6 @@ func (autoApprovers *AutoApprovers) GetRouteApprovers(
for autoApprovedPrefix, autoApproverAliases := range autoApprovers.Routes {
autoApprovedPrefix, err := netip.ParsePrefix(autoApprovedPrefix)
if err != nil {
return nil, err
}