Skip to content

Commit

Permalink
Chore: avoid provider unnecessary write file operations (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr328 authored Feb 2, 2021
1 parent cd48f69 commit 6036fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/provider/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (f *fetcher) Initial() (interface{}, error) {
}
}

if f.vehicle.Type() != File {
if f.vehicle.Type() != File && !isLocal {
if err := safeWrite(f.vehicle.Path(), buf); err != nil {
return nil, err
}
Expand Down

0 comments on commit 6036fb6

Please sign in to comment.