From c8a56a7e894a653e2a7303b1ce7db7c93ea0f429 Mon Sep 17 00:00:00 2001 From: Caleb Xiang Date: Tue, 22 Dec 2020 23:09:56 +0800 Subject: [PATCH] remove fmt.Println for debug --- nested_set.go | 1 - nested_set_test.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/nested_set.go b/nested_set.go index a69e128..493ebd2 100644 --- a/nested_set.go +++ b/nested_set.go @@ -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) diff --git a/nested_set_test.go b/nested_set_test.go index bce4e98..489d277 100644 --- a/nested_set_test.go +++ b/nested_set_test.go @@ -2,7 +2,6 @@ package nestedset import ( "database/sql" - "fmt" "testing" "github.com/stretchr/testify/assert" @@ -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}