Skip to content

Commit 4a475b6

Browse files
author
Kate Osborn
committed
Fix comment for sort.ClientObject
1 parent bae6718 commit 4a475b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/mode/static/sort/sort.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ func LessObjectMeta(meta1 *metav1.ObjectMeta, meta2 *metav1.ObjectMeta) bool {
1818
return meta1.CreationTimestamp.Before(&meta2.CreationTimestamp)
1919
}
2020

21-
// ClientObject compares two client.Objects and returns true if the first object was created first.
22-
// If the objects were created at the same time,
23-
// it returns true if the first object's name appears first in alphabetical order.
21+
// ClientObject compares two client.Objects and returns true if:
22+
// - the first object was created first,
23+
// - the objects were created at the same time, or
24+
// - the first object's name appears first in alphabetical order.
2425
func ClientObject(obj1 client.Object, obj2 client.Object) bool {
2526
create1 := obj1.GetCreationTimestamp()
2627
create2 := obj2.GetCreationTimestamp()

0 commit comments

Comments
 (0)