Skip to content

Commit f060c44

Browse files
Copilotcrossjam
andcommitted
Fix redundant conditional check in validate command
Co-authored-by: crossjam <[email protected]>
1 parent a277796 commit f060c44

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/retrocast/process_commands.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -561,13 +561,12 @@ def validate_transcriptions(
561561
invalid_files.append((json_file, error_msg))
562562
if verbose:
563563
console.print(f"[red]✗[/red] {relative_path}: Validation failed")
564-
if verbose:
565-
# Show first error only for brevity
566-
errors = e.errors()
567-
if errors:
568-
first_error = errors[0]
569-
console.print(
570-
f" [dim]Field: {first_error['loc']}, "
564+
# Show first error only for brevity
565+
errors = e.errors()
566+
if errors:
567+
first_error = errors[0]
568+
console.print(
569+
f" [dim]Field: {first_error['loc']}, "
571570
f"Error: {first_error['msg']}[/dim]"
572571
)
573572

0 commit comments

Comments
 (0)