From 5feb009b7477738ba49a1a70e2fe444622070d3d Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Fri, 10 May 2024 16:19:27 +0530 Subject: [PATCH] Fix lint warning --- server/pkg/controller/embedding/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/pkg/controller/embedding/controller.go b/server/pkg/controller/embedding/controller.go index 7891b464c..a30043e7f 100644 --- a/server/pkg/controller/embedding/controller.go +++ b/server/pkg/controller/embedding/controller.go @@ -144,7 +144,7 @@ func (c *Controller) GetFilesEmbedding(ctx *gin.Context, req ente.GetFilesEmbedd noEmbeddingFileIds := make([]int64, 0) dbFileIds := make([]int64, 0) // fileIDs that were indexed but they don't contain any embedding information - for i, _ := range userFileEmbeddings { + for i := range userFileEmbeddings { dbFileIds = append(dbFileIds, userFileEmbeddings[i].FileID) if userFileEmbeddings[i].Size != nil && *userFileEmbeddings[i].Size < minEmbeddingDataSize { noEmbeddingFileIds = append(noEmbeddingFileIds, userFileEmbeddings[i].FileID)