Skip to content

Commit

Permalink
Merge pull request #8 from calebx/main
Browse files Browse the repository at this point in the history
remove fmt.Println for debug
  • Loading branch information
griffinqiu authored Dec 23, 2020
2 parents e2c234d + c8a56a7 commit e1fdf70
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion nested_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ func parseNode(db *gorm.DB, source interface{}) (tx *gorm.DB, item nodeItem, err

item = nodeItem{TableName: stmt.Table, DbNames: map[string]string{}}
sourceType := reflect.TypeOf(source)
fmt.Printf("sourceType:%s\n", sourceType)
sourceValue := reflect.Indirect(reflect.ValueOf(source))
for i := 0; i < sourceType.NumField(); i++ {
t := sourceType.Field(i)
Expand Down
2 changes: 0 additions & 2 deletions nested_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package nestedset

import (
"database/sql"
"fmt"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -189,7 +188,6 @@ func TestMoveToInner(t *testing.T) {
}

func assertNodeEqual(t *testing.T, target Category, left, right, depth, childrenCount int, parentID int64) {
fmt.Printf("Asserting %s(%d)\n", target.Title, target.ID)
nullInt64ParentID := sql.NullInt64{Valid: false}
if parentID > 0 {
nullInt64ParentID = sql.NullInt64{Valid: true, Int64: parentID}
Expand Down

0 comments on commit e1fdf70

Please sign in to comment.