Skip to content

Commit 3f29dc6

Browse files
authored
Remove duplicate call to cache.get_path. NFC (emscripten-core#23655)
1 parent 964fc9a commit 3f29dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/link.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,11 @@ def build_symbol_list(filename):
233233
# We need to use a separate lock here for symbol lists because, unlike with system libraries,
234234
# it's normally for these file to get pruned as part of normal operation. This means that it
235235
# can be deleted between the `cache.get()` then the `read_file`.
236-
with filelock.FileLock(cache.get_path(cache.get_path('symbol_lists.lock'))):
236+
with filelock.FileLock(cache.get_path('symbol_lists.lock')):
237237
filename = cache.get(f'symbol_lists/{content_hash}.json', build_symbol_list)
238238
library_syms = json.loads(read_file(filename))
239239

240-
# Limit of the overall size of the cache to 100 files.
240+
# Limit of the overall size of the cache.
241241
# This code will get test coverage since a full test run of `other` or `core`
242242
# generates ~1000 unique symbol lists.
243243
cache_limit = 500

0 commit comments

Comments
 (0)