Skip to content

op env's get_by_path return value different from root_state_accessor_stub's get_object_by_path #235

@weiqiushi

Description

@weiqiushi

path op env's get_by_path has return value BuckyResult<Option>
it shows when path not exists, it may return Ok(None)

but root_state_accessor_stub's get_object_by_path function has return value BuckyResult

I think when path not exists, it will return BuckyErrorCode::NotFound?

Is there a need to make the return values of these two functions same?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Any IdeaAny problem/ideas/suggestionsUser-friendlinessTo improve the usability of the interface & SDKquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions