Skip to content

Commit 12b8ca4

Browse files
authored
Merge pull request docker#6901 from thaJeztah/modernize
cli/command/formatter: modernize
2 parents dc9b6e5 + ea74248 commit 12b8ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/command/formatter/reflect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func MarshalJSON(x any) ([]byte, error) {
2424
// marshalMap marshals x to map[string]any
2525
func marshalMap(x any) (map[string]any, error) {
2626
val := reflect.ValueOf(x)
27-
if val.Kind() != reflect.Ptr {
27+
if val.Kind() != reflect.Pointer {
2828
return nil, fmt.Errorf("expected a pointer to a struct, got %v", val.Kind())
2929
}
3030
if val.IsNil() {

0 commit comments

Comments
 (0)