Skip to content

Commit

Permalink
Fix return result
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Augusto Malucelli committed Jul 7, 2021
1 parent d65bc9c commit e29270d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ipranges/ipranges.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"io/ioutil"
"log"
"net/http"
"fmt"
)

const (
Expand All @@ -28,7 +29,7 @@ type prefixesInfo struct {
}

// ReturnRange - Return IP(ranges) based on Region and Service
func ReturnRange(service, region string) []byte {
func ReturnRange(service, region string) {
var awsRanges awsRangesInfo

resp, err := http.Get(awsURLRanges)
Expand Down Expand Up @@ -57,5 +58,5 @@ func ReturnRange(service, region string) []byte {
if err != nil {
log.Fatal(err.Error())
}
return listPrefixesJSON
fmt.Println(string(listPrefixesJSON))
}

0 comments on commit e29270d

Please sign in to comment.