Skip to content

Commit 060cf9c

Browse files
authored
use zero var name for getting typed nil
1 parent 92fb931 commit 060cf9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conditions/conditions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ type StatusWithConditions[S HasConditions] struct {
3232

3333
// GetStatusConditions returns all status conditions.
3434
func (s *StatusWithConditions[S]) GetStatusConditions() *[]metav1.Condition {
35-
var nilS S
36-
if s.Status == nilS {
35+
var zero S
36+
if s.Status == zero {
3737
return nil
3838
}
3939
return s.Status.GetStatusConditions()

0 commit comments

Comments
 (0)