Fix operator precedence. #131

This commit is contained in:
Andrey Smirnov
2014-10-26 19:53:49 +03:00
parent 140a11c04a
commit 4c1d6d1463

View File

@@ -318,7 +318,7 @@ func DownloadTryCompression(downloader aptly.Downloader, url string, expectedChe
}
if err != nil {
if err1, ok := err.(*HTTPError); ok && err1.Code == 404 || err1.Code == 403 {
if err1, ok := err.(*HTTPError); ok && (err1.Code == 404 || err1.Code == 403) {
continue
}
return nil, nil, err