Skip to content

main.rs:956: cmd_doctor returns Result<i32> but always returns Ok — should return i32 directly #576

@EffortlessSteven

Description

@EffortlessSteven

Location:

Clippy lint:

always succeeds — it returns when all checks pass and when checks fail. The wrapper is never used to convey an actual error. The only "error" case (git/command not available) is handled internally with .

Fix: Change return type to and return or directly.

Existing issues: No open issue covers this specific unnecessary wrapper in . Related but distinct: #572 covers in .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions