Skip to content

Commit 9154ed1

Browse files
committed
chore(lint): inline reflect.Pointer instead of reflect.Ptr
1 parent 79bac5f commit 9154ed1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/extract/pod_spec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func PodTemplateSpec(obj k8sutil.Object) (coreV1.PodTemplateSpec, bool) {
3434
if !template.IsValid() {
3535
return coreV1.PodTemplateSpec{}, false
3636
}
37-
if template.Kind() == reflect.Ptr && !template.IsNil() {
37+
if template.Kind() == reflect.Pointer && !template.IsNil() {
3838
template = template.Elem()
3939
}
4040
podTemplate, ok := template.Interface().(coreV1.PodTemplateSpec)

pkg/extract/update_strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func rollingUpdateFromUpdateStrategy(strategy reflect.Value) (reflect.Value, boo
7272
return rollingUpdate, false
7373
}
7474
}
75-
if rollingUpdate.Kind() == reflect.Ptr && !rollingUpdate.IsNil() {
75+
if rollingUpdate.Kind() == reflect.Pointer && !rollingUpdate.IsNil() {
7676
rollingUpdate = rollingUpdate.Elem()
7777
}
7878
return rollingUpdate, true

0 commit comments

Comments
 (0)