Skip to content

Commit

Permalink
Only update _path_hash if there's any change (web-platform-tests#15785)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Mar 12, 2019
1 parent affb72f commit 951d16f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/manifest/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,8 @@ def update(self, tree):
elif is_new or hash_changed:
self._data[new_type][rel_path] = set(manifest_items)

self._path_hash[rel_path] = (file_hash, new_type)

if is_new or hash_changed:
self._path_hash[rel_path] = (file_hash, new_type)
changed = True

deleted = prev_files - seen_files
Expand Down

0 comments on commit 951d16f

Please sign in to comment.