Skip to content

Commit

Permalink
fix linter finding
Browse files Browse the repository at this point in the history
  • Loading branch information
maigl committed Nov 26, 2024
1 parent 386aba1 commit 3a95b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/sql/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func (s *sqlDatabase) updatePool(tx *gorm.DB, pool Pool, param params.UpdatePool
}

tags := []Tag{}
if param.Tags != nil && len(param.Tags) > 0 {
if len(param.Tags) > 0 {
for _, val := range param.Tags {
t, err := s.getOrCreateTag(tx, val)
if err != nil {
Expand Down

0 comments on commit 3a95b8f

Please sign in to comment.