forked from hummypkg/webif
Simplify expression
This commit is contained in:
parent
c0ed6a65d9
commit
d5f21d0ef5
@ -193,7 +193,7 @@ puts {
|
||||
|
||||
if {[catch {exec /bin/smartctl -l selftest $device} msg]} {
|
||||
set rc [lindex $::errorCode 2]
|
||||
set rc $($rc eq "" ? 1 : [expr {$rc & 7}])
|
||||
set rc $($rc eq "" ? 1 : $rc & 7)
|
||||
if {$rc} { set msg "" }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user