Chore: should not write file on file provider
This commit is contained in:
parent
b93708d929
commit
195e5be59a
1 changed files with 4 additions and 2 deletions
|
@ -74,8 +74,10 @@ func (f *fetcher) Initial() (interface{}, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := safeWrite(f.vehicle.Path(), buf); err != nil {
|
if f.vehicle.Type() != File {
|
||||||
return nil, err
|
if err := safeWrite(f.vehicle.Path(), buf); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
f.hash = md5.Sum(buf)
|
f.hash = md5.Sum(buf)
|
||||||
|
|
Loading…
Reference in a new issue