mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-06 06:33:31 +03:00
Fix: unnecessary write operation on provider (#1170)
This commit is contained in:
parent
6fedd7ec84
commit
b25009cde7
1 changed files with 4 additions and 2 deletions
|
@ -108,8 +108,10 @@ func (f *fetcher) Update() (interface{}, bool, error) {
|
|||
return nil, false, err
|
||||
}
|
||||
|
||||
if err := safeWrite(f.vehicle.Path(), buf); err != nil {
|
||||
return nil, false, err
|
||||
if f.vehicle.Type() != File {
|
||||
if err := safeWrite(f.vehicle.Path(), buf); err != nil {
|
||||
return nil, false, err
|
||||
}
|
||||
}
|
||||
|
||||
f.updatedAt = &now
|
||||
|
|
Loading…
Add table
Reference in a new issue