Skip to content

Commit 7bec52c

Browse files
committed
More compact return statement
1 parent 9a70832 commit 7bec52c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

training/coqui_stt_training/util/augmentations.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,7 @@ def parse_augmentations(augmentation_specs):
107107
-------
108108
List of augmentation class instances from util.augmentations.*.
109109
"""
110-
if augmentation_specs is None:
111-
return []
112-
else:
113-
return list(map(parse_augmentation, augmentation_specs))
110+
return list(map(parse_augmentation, augmentation_specs or []))
114111

115112

116113
def apply_graph_augmentations(domain, tensor, augmentations, transcript=None, clock=0.0):

0 commit comments

Comments
 (0)