Skip to content

Commit

Permalink
Update ipinfo/cmd_download.go
Browse files Browse the repository at this point in the history
Co-authored-by: Uman Shahzad <[email protected]>
  • Loading branch information
Harisabdullah and UmanShahzad authored Aug 7, 2023
1 parent 0191e17 commit e357a68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ipinfo/cmd_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ func cmdDownload() error {
url := fmt.Sprintf("%s%s.%s?token=%s", dbDownloadURL, dbName, format, token)
err := downloadDb(url, fileName, format, fZip)

// check if checksums match.
// fetch checksums from API and check if they match.
checksumUrl := fmt.Sprintf("%s%s.%s/checksums?token=%s", dbDownloadURL, dbName, format, token)
// fetch checksums from API.
checksumResponse, err := fetchChecksums(checksumUrl)
if err != nil {
return err
Expand Down

0 comments on commit e357a68

Please sign in to comment.