Skip to content

Use expected<void, error> instead of optional<error> #2292

@kuznetsss

Description

@kuznetsss

Summary

We have a few places (at least in the new web server but maybe somewhere else) where we return result as std::optional<error>. It would be better to use std::expected<void, error> in such case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactoringCode improvements without logical changes

    Type

    No type

    Projects

    Status

    📋 Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions