tools: haskell-translator: avoid needless case distinction
This commit is contained in:
parent
325176fb86
commit
99a6ecae27
|
@ -677,9 +677,7 @@ def simple_newtype_transform(line, header, d):
|
|||
for bit in bits[1:]:
|
||||
if bit.startswith('('):
|
||||
bit = bit[1:-1]
|
||||
typename = type_transform(str(bit))
|
||||
else:
|
||||
typename = type_conv(str(bit))
|
||||
typename = type_transform(str(bit))
|
||||
if len(bits) == 2:
|
||||
last_rhs = typename
|
||||
if ' ' in typename:
|
||||
|
|
Loading…
Reference in New Issue