Merge pull request #1029 from Astone-Chou/lint_fix_fix
fix tiny error in linting fixes
This commit is contained in:
commit
b804303aa0
@ -17,7 +17,7 @@ func (r *Resolver) Resolve(name string) ([]*resolver.Record, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
records := make([]*resolver.Record, len(addrs))
|
||||
records := make([]*resolver.Record, 0, len(addrs))
|
||||
for _, addr := range addrs {
|
||||
address := addr.Target
|
||||
if addr.Port > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user