Skip to content

Commit 4528796

Browse files
committed
fix: lint error
1 parent 761e8a6 commit 4528796

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

gotojs.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ func (tracker *Tracker[T]) StructToJSObjectValue(
4747
// Determine the struct type and value for field processing:
4848
// - pointer to struct: dereference for field processing.
4949
// - direct struct: use as-is.
50-
var structType reflect.Type
51-
var structVal reflect.Value
50+
var (
51+
structType reflect.Type
52+
structVal reflect.Value
53+
)
5254

5355
if rtype.Kind() == reflect.Ptr {
5456
structType = rtype.Elem()
@@ -410,7 +412,6 @@ func (tracker *Tracker[T]) addStructMethodsToObject(
410412
rtype reflect.Type,
411413
rval reflect.Value,
412414
) error {
413-
414415
for i := range rtype.NumMethod() {
415416
method := rtype.Method(i)
416417
methodValue := rval.Method(i)

0 commit comments

Comments
 (0)