Closed Bug 1648384 Opened 5 years ago Closed 5 years ago

Use Result::propagateErr where appropriate

Categories

(Firefox :: Launcher Process, task)

Unspecified
Windows
task

Tracking

()

RESOLVED FIXED
Firefox 79
Tracking Status
firefox79 --- fixed

People

(Reporter: sg, Assigned: sg)

Details

Attachments

(1 file)

Code doing
return Err(someResult.unwrapErr()); can be simplified to someResult.propagateErr(); where someResult and the function's return type have the same error type, but different value types.

Component: MFBT → Launcher Process
OS: Unspecified → Windows
Product: Core → Firefox
Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0acc9e36ffad Make use of Result::propagateErr. r=mhowell
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: