Skip to content

Commit

Permalink
Eliminate line that is never hit
Browse files Browse the repository at this point in the history
  • Loading branch information
EntilZha committed Nov 10, 2015
1 parent 924eb19 commit 0688b1f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions functional/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ def is_namedtuple(val):
if len(bases) != 1 or bases[0] != tuple:
return False
fields = getattr(val_type, '_fields', None)
if not isinstance(fields, tuple):
return False
return all(isinstance(n, str) for n in fields)


Expand Down

0 comments on commit 0688b1f

Please sign in to comment.