Split multi-command lines for better readability

Addressed code review feedback to improve readability by splitting
if-statements that had multiple commands on a single line.

Co-authored-by: nikosavola <7860886+nikosavola@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-12-08 13:25:18 +00:00
parent 5838ac960d
commit 96445f754c
2 changed files with 9 additions and 2 deletions

View File

@ -133,7 +133,11 @@ proc draw_trim_wiregrid {} {
set n [xschem get lastsel]
xschem unselect_all
## if all wires trimmed correctly we should have 129*128*2 = 33024 segments.
if {$n == 33024} {puts "Trim wire test: $n segments, OK"} else {puts "Trim wire test FAIL"}
if {$n == 33024} {
puts "Trim wire test: $n segments, OK"
} else {
puts "Trim wire test FAIL"
}
xschem clear force
}

View File

@ -26,7 +26,10 @@ proc from_eng {i} {
}
set arg1 [lindex $argv 0]
if {$arg1 eq {}} {puts stderr "empty arg"; set arg1 1K}
if {$arg1 eq {}} {
puts stderr "empty arg"
set arg1 1K
}
if {[from_eng $arg1] > 0.1} {
puts stderr "res value=|$arg1|"
puts "v {xschem version=3.4.0 file_version=1.2