compact code

This commit is contained in:
SowinskiBraeden committed 2022-12-08 14:28:28 -08:00
1 parent c578f0845d
commit 15b3ddb2f7
1 file changed
+1 -2
+1 -2
View File
@@ -10,8 +10,7 @@ def validateInputData(inputFileDir: str) -> Error:
if len(missing) > 0:
description = 'You are missing the following: '
for i in range(len(missing)):
if i != len(missing) - 1: description += f'{missing[i]}, '
else: description += f'{missing[i]}'
description += f'{missing[i]}, ' if i != len(missing) - 1 else description += f'{missing[i]}'
missingErr = Error('Missing Required Fields', description)
return missingErr