Skip to content

[Bug]: Redundant unwrap in core_badge.rs:77 #270

@rubentalstra

Description

@rubentalstra

Description

A redundant unwrap() in tss-gui/src/component/display/core_badge.rs:77 could be simplified or made safer.

Location

tss-gui/src/component/display/core_badge.rs:77

Expected Behavior

Code should use safe patterns that don't require unwrap for known-safe operations.

Suggested Fix

Evaluate if the unwrap is truly necessary. If the value is always Some, restructure the code to avoid the Option. If not, use proper error handling.

Priority

Low - Affects code quality but unlikely to cause runtime issues.

Related

Discovered during GitHub issues verification audit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: lowNice to have, minor improvements

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions