From 7e380fa00e2059b4281d5b4a07bfc69cfaaa283c Mon Sep 17 00:00:00 2001 From: SimoneDutto Date: Fri, 6 Sep 2024 09:17:47 +0200 Subject: [PATCH] fix lint --- internal/db/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/resource.go b/internal/db/resource.go index 397d8a1b4..d8b5500bc 100644 --- a/internal/db/resource.go +++ b/internal/db/resource.go @@ -118,7 +118,7 @@ func (d *Database) ListResources(ctx context.Context, limit, offset int, namePre func buildQuery(db *gorm.DB, offset, limit int, namePrefixFilter, typeFilter string) (*gorm.DB, error) { // if namePrefixEmpty set to true we have a 'TRUE IS TRUE' in the SQL WHERE statement, which disable the filtering. namePrefixEmpty := namePrefixFilter == "" - namePrefixFilter = namePrefixFilter + "%" + namePrefixFilter += "%" applicationOffersQuery := db.Select(selectApplicationOffers). Model(&dbmodel.ApplicationOffer{}).