Skip to content

Commit 298e650

Browse files
committed
chore: Use Value.Elem instead of reflect.Indirect for readability
1 parent 218a63d commit 298e650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/template/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func getArrayValues(funcName string, entries interface{}) (*reflect.Value, error
3030
kind := entriesVal.Kind()
3131

3232
if kind == reflect.Ptr {
33-
entriesVal = reflect.Indirect(entriesVal)
33+
entriesVal = entriesVal.Elem()
3434
kind = entriesVal.Kind()
3535
}
3636

0 commit comments

Comments
 (0)