compact code
This commit is contained in:
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user