Skip to content

Commit

Permalink
Avoid duplicate files in remote files list cache
Browse files Browse the repository at this point in the history
Files on the "always_update" list would show more than once if duplicate entries aren't removed.
  • Loading branch information
oboxodo authored Aug 22, 2023
1 parent 8e338d8 commit cba481a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asset_sync/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def update_remote_file_list_cache(local_files_to_upload)
return if ignore_existing_remote_files?

File.open(self.remote_file_list_cache_file_path, 'w') do |file|
uploaded = local_files_to_upload + remote_files
uploaded = (local_files_to_upload + remote_files).uniq
file.write(uploaded.to_json)
end
end
Expand Down

0 comments on commit cba481a

Please sign in to comment.