Simplify spec comment processing

This commit is contained in:
Alex Stokes 2021-04-23 08:03:49 -07:00 committed by GitHub
parent dcb013ccf2
commit 58e768392e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -165,9 +165,8 @@ def get_spec(file_name: str) -> SpecObject:
custom_types[name] = value
elif isinstance(child, LinkRefDef):
comment = _get_eth2_spec_comment(child)
if comment:
if comment == "skip":
should_skip = True
if comment == "skip":
should_skip = True
return SpecObject(
functions=functions,