mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-11-13 14:37:18 +00:00
Fix error checking
This commit is contained in:
1 parent
8925949be3
commit
4c54f967b7
1 file changed
+1
-1
+1
-1
@@ -142,7 +142,7 @@ Loop:
|
||||
}
|
||||
}
|
||||
err = resp.Err()
|
||||
if err != nil && errors.Is(err, grab.ErrBadChecksum) && ignoreMismatch {
|
||||
if err != nil && err == grab.ErrBadChecksum && ignoreMismatch {
|
||||
fmt.Printf("Ignoring checksum mismatch for %s\n", url)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user