Fix: should write file if provider initialize from HTTP (#1365)

This commit is contained in:
Kr328 2021-04-19 17:40:38 +08:00 committed by GitHub
parent df5112175f
commit 4186bcf1b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,8 @@ func (f *fetcher) Initial() (interface{}, error) {
if err != nil {
return nil, err
}
isLocal = false
}
if f.vehicle.Type() != File && !isLocal {