Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto committed Sep 6, 2024
1 parent 948d82d commit 7e380fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}).
Expand Down

0 comments on commit 7e380fa

Please sign in to comment.