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:
parent
5838ac960d
commit
96445f754c
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue