repochecker/*-inspector: Refactor file opening
This commit is contained in:
parent
14f10c91db
commit
c28ad9533b
@ -20,7 +20,8 @@ func checkZip(file *fic.EFile, exceptions *sync.CheckExceptions) (errs []error)
|
|||||||
|
|
||||||
fdat, ok := fd.(io.ReaderAt)
|
fdat, ok := fd.(io.ReaderAt)
|
||||||
if !ok {
|
if !ok {
|
||||||
log.Println("The current reader doesn't allow me to check this archive")
|
log.Printf("The current Importer (%t) doesn't allow me to check the archive: %s. Please test-it yourself", sync.GlobalImporter, file.GetOrigin())
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
size, err := sync.GetFileSize(sync.GlobalImporter, file.GetOrigin())
|
size, err := sync.GetFileSize(sync.GlobalImporter, file.GetOrigin())
|
||||||
|
Loading…
Reference in New Issue
Block a user