mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
all: apply suggestions from staticcheck.io
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -283,10 +283,6 @@ func (l *List) layout(ops *op.Ops, macro op.MacroOp) Dimensions {
|
||||
cross = (maxCross - sz.Y) / 2
|
||||
}
|
||||
childSize := sz.X
|
||||
max := childSize + pos
|
||||
if max > mainMax {
|
||||
max = mainMax
|
||||
}
|
||||
min := pos
|
||||
if min < 0 {
|
||||
min = 0
|
||||
|
||||
Reference in New Issue
Block a user