Skip to content

Commit

Permalink
RHINENG-9028: fix impossible condition - wrong err checked
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Mar 26, 2024
1 parent 08cc83b commit a58729b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listener/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func updateSystemPlatform(tx *gorm.DB, inventoryID string, accountID int, host *
func storeOrUpdateSysPlatform(tx *gorm.DB, system *models.SystemPlatform, colsToUpdate []string) error {
var err error
if errSelect := tx.Where("rh_account_id = ? AND inventory_id = ?", system.RhAccountID, system.InventoryID).
Select("id").Find(system).Error; err != nil {
Select("id").Find(system).Error; errSelect != nil {
utils.LogWarn("err", errSelect, "couldn't find system for update")
}

Expand Down

0 comments on commit a58729b

Please sign in to comment.