From b1cdc9348fef321da7ad867e134ed0999882b44d Mon Sep 17 00:00:00 2001 From: black Date: Tue, 2 Jan 2024 21:09:29 +0800 Subject: [PATCH] fix lint --- callbacks/preload.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/callbacks/preload.go b/callbacks/preload.go index ed5ebadf..4133c2c3 100644 --- a/callbacks/preload.go +++ b/callbacks/preload.go @@ -85,6 +85,8 @@ func embeddedValues(embeddedRelations *schema.Relationships) []string { // preloadEntryPoint enters layer by layer. It will call real preload if it finds the right entry point. // If the current relationship is embedded or joined, current query will be ignored. +// +//nolint:cyclop func preloadEntryPoint(db *gorm.DB, preloadFields, joins []string, relationships *schema.Relationships, preloads map[string][]interface{}, associationsConds []interface{}) error { preloadMap := parsePreloadMap(db.Statement.Schema, preloads)