Page MenuHomePhabricator

[services] Use ensure! macro where possible
ClosedPublic

Authored by bartek on Oct 11 2022, 1:00 AM.
Tags
None
Referenced Files
F3754728: D5340.id17513.diff
Fri, Jan 10, 3:56 AM
F3754727: D5340.id17481.diff
Fri, Jan 10, 3:56 AM
F3754716: D5340.id.diff
Fri, Jan 10, 3:56 AM
F3754679: D5340.diff
Fri, Jan 10, 3:51 AM
Unknown Object (File)
Fri, Dec 27, 8:55 AM
Unknown Object (File)
Nov 24 2024, 2:46 PM
Unknown Object (File)
Nov 24 2024, 2:46 PM
Unknown Object (File)
Nov 24 2024, 2:46 PM

Details

Summary

Resolves ENG-1840. It was suggested to use anyhow::ensure! macro instead of bail! where possible.
There were only few places, where such replacement was possible, as most of the code use bail! with if let which cannot be easily transformed into ensure!.

Test Plan
  • Backup service container builds
  • Service integration tests pass

Diff Detail

Repository
rCOMM Comm
Branch
@barthap/ensure-bail
Lint
No Lint Coverage
Unit
No Test Coverage