Fix: linter complaints

This commit is contained in:
Grail Finder
2026-03-02 11:39:55 +03:00
parent 4f6000a43a
commit 3389b1d83b
3 changed files with 9 additions and 10 deletions

3
tui.go
View File

@@ -213,8 +213,7 @@ func init() {
pages.SwitchToPage("main") // or whatever your main page is named
})
confirmModal.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
switch event.Key() {
case tcell.KeyRune:
if event.Key() == tcell.KeyRune {
switch event.Rune() {
case 'y', 'Y':
persona := cfg.UserRole