We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4432195 commit 70b5820Copy full SHA for 70b5820
1 file changed
pkg/docker/dockerimage/topobjects.go
@@ -17,6 +17,16 @@ func NewTopObjects(n int) TopObjects {
17
func (to TopObjects) Len() int { return len(to) }
18
19
func (to TopObjects) Less(i, j int) bool {
20
+ if to[i] == nil && to[j] != nil {
21
+ return true
22
+ }
23
+ if to[i] != nil && to[j] == nil {
24
+ return false
25
26
+ if to[i] == nil && to[j] == nil {
27
28
29
+
30
return to[i].Size < to[j].Size
31
}
32
0 commit comments