mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 16:24:00 +01:00
Delete error checking branch that isn't necessary because the filter condition above is much more precise now
This commit is contained in:
parent
04a0fc40cd
commit
713ee96a96
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user