Optimize the judgment mode to remove redundant transformations (#9588)

Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
This commit is contained in:
Fish-pro 2023-02-16 21:59:39 +08:00 committed by GitHub
parent 00086ab429
commit fbdbc24a42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

View file

@ -165,7 +165,7 @@ func downloadDatabase(dbName string) error {
mmdbFile := dbName + dbExtension
tarReader := tar.NewReader(archive)
for true {
for {
header, err := tarReader.Next()
if err == io.EOF {
break