summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-02 11:39:55 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-02 11:39:55 +0300
commit3389b1d83bc9fcc605fdff813c826410d07cfe28 (patch)
treea9a3dc852f5fdc2f1b3050e8f70bfc687e6a781b /tui.go
parent4f6000a43ad2ee019a799c5b5154af9f853e2b83 (diff)
Fix: linter complaintsHEADmaster
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/tui.go b/tui.go
index 1f06598..d1ca5f0 100644
--- a/tui.go
+++ b/tui.go
@@ -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