mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Make metav1.(Micro)?Time functions take pointers
This commit is contained in:
@@ -44,7 +44,7 @@ func (s PodsByCreationTime) Swap(i, j int) {
|
||||
}
|
||||
|
||||
func (s PodsByCreationTime) Less(i, j int) bool {
|
||||
return s[i].CreationTimestamp.Before(s[j].CreationTimestamp)
|
||||
return s[i].CreationTimestamp.Before(&s[j].CreationTimestamp)
|
||||
}
|
||||
|
||||
// ByImageSize makes an array of images sortable by their size in descending
|
||||
|
||||
Reference in New Issue
Block a user