Skip to content

BUG: String concatenation with += for crypto status in email viewΒ #966

@andrinoff

Description

@andrinoff

Describe the bug

In tui/email_view.go:326-354, crypto status and shortcuts strings are built with +=:

cryptoStatus += lipgloss.NewStyle()...Render(" [PGP: πŸ”’ Encrypted]")
shortcuts += " β€’ " + pk.Key + ": " + pk.Description
shortcuts += " β€’ " + m.pluginStatus

To reproduce

Not a crash β€” code quality and minor performance issue.

Expected behavior

Use strings.Builder for building crypto status and shortcuts strings.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomersperformancePerformance improvement

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions