From 1ebe2501f291264a81c97474e152ee2d0f659c05 Mon Sep 17 00:00:00 2001 From: Goxiaoy Date: Mon, 11 Jul 2022 14:52:11 +0800 Subject: [PATCH] style: empty QueryClauses in association (#5502) --- tests/associations_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/associations_test.go b/tests/associations_test.go index 71d633d1..cd709e67 100644 --- a/tests/associations_test.go +++ b/tests/associations_test.go @@ -1,9 +1,10 @@ package tests_test import ( + "testing" + "gorm.io/gorm/clause" "gorm.io/gorm/schema" - "testing" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" @@ -309,11 +310,10 @@ func (sd emptyQueryClause) MergeClause(*clause.Clause) { } func (sd emptyQueryClause) ModifyStatement(stmt *gorm.Statement) { - //do nothing + // do nothing } func TestAssociationEmptyQueryClause(t *testing.T) { - type Organization struct { gorm.Model Name string