From 7dc94ada4b905df95619307226bca4ab16836423 Mon Sep 17 00:00:00 2001 From: Greg Gardner Date: Mon, 20 Jul 2026 02:13:11 -0700 Subject: [PATCH] Fix reflect pointer lint findings Nightshift-Task: lint-fix Nightshift-Ref: https://github.com/marcus/nightshift --- cmd/nightshift/commands/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/nightshift/commands/config.go b/cmd/nightshift/commands/config.go index 4300470..ebb398f 100644 --- a/cmd/nightshift/commands/config.go +++ b/cmd/nightshift/commands/config.go @@ -370,7 +370,7 @@ func printStruct(v reflect.Value, indent int) { case reflect.Struct: fmt.Printf("%s%s:\n", prefix, tag) printStruct(value, indent+1) - case reflect.Ptr: + case reflect.Pointer: if !value.IsNil() { if value.Elem().Kind() == reflect.Struct { fmt.Printf("%s%s:\n", prefix, tag) @@ -408,7 +408,7 @@ func printStruct(v reflect.Value, indent int) { func isZero(v reflect.Value) bool { switch v.Kind() { - case reflect.Ptr, reflect.Interface: + case reflect.Pointer, reflect.Interface: return v.IsNil() case reflect.Slice, reflect.Map: return v.Len() == 0