MCPcopy Create free account
hub / github.com/Impact-I/reFlutter / is_hash_valid

Function is_hash_valid

scripts/get_flutter_engine.py:23–27  ·  view source on GitHub ↗
(string_hash: str)

Source from the content-addressed store, hash-verified

21
22
23def is_hash_valid(string_hash: str) -> bool:
24 return (
25 get(f"https://github.com/flutter/flutter/commit/{string_hash}").status_code
26 == 200
27 )
28
29
30file_name = sys.argv[1]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected