Optimize the judgment mode to remove redundant transformations (#9588)
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
This commit is contained in:
parent
00086ab429
commit
fbdbc24a42
3 changed files with 5 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue