Delete error checking branch that isn't necessary because the filter condition above is much more precise now

This commit is contained in:
David Dworken 2023-09-17 12:06:19 -07:00
parent 04a0fc40cd
commit 713ee96a96
No known key found for this signature in database

View File

@ -147,9 +147,6 @@ func saveHistoryEntry(ctx context.Context) {
if res.Error != nil {
return fmt.Errorf("failed to delete pre-saved history entry (expected command=%#v): %w", entry.Command, res.Error)
}
if res.RowsAffected > 1 {
return fmt.Errorf("attempted to delete pre-saved entry, but something went wrong since we deleted %d rows", res.RowsAffected)
}
return nil
}
lib.CheckFatalError(lib.RetryingDbFunction(deletePresavedEntryFunc))