From 58e768392e7c6d91f80cb74f6cfc600f610223b3 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Fri, 23 Apr 2021 08:03:49 -0700 Subject: [PATCH] Simplify spec comment processing --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 2b1b23cd7..37fbd7795 100644 --- a/setup.py +++ b/setup.py @@ -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,