Skip to content

Commit 99e170b

Browse files
committed
linter fix
1 parent 22b7523 commit 99e170b

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

gojira/dayview.go

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,17 @@ func NewDayView() *DayView { //nolint:funlen
3232
app.ui.app.Draw()
3333
}),
3434
}
35-
dayView.searchInput = tview.NewInputField().SetLabel("(l)Latest | (/)Search: ").SetFieldWidth(60).SetDoneFunc(func(key tcell.Key) {
36-
if key == tcell.KeyEnter {
37-
go func() {
38-
dayView.SearchIssues(dayView.searchInput.GetText())
39-
}()
40-
}
41-
if key == tcell.KeyEscape {
42-
app.ui.app.SetFocus(dayView.latestIssuesList)
43-
}
44-
}).SetFieldStyle(tcell.StyleDefault.Foreground(tcell.ColorWhite).Background(tcell.ColorBlack))
35+
dayView.searchInput = tview.NewInputField().SetLabel("(l)Latest | (/)Search: ").SetFieldWidth(60).
36+
SetDoneFunc(func(key tcell.Key) {
37+
if key == tcell.KeyEnter {
38+
go func() {
39+
dayView.SearchIssues(dayView.searchInput.GetText())
40+
}()
41+
}
42+
if key == tcell.KeyEscape {
43+
app.ui.app.SetFocus(dayView.latestIssuesList)
44+
}
45+
}).SetFieldStyle(tcell.StyleDefault.Foreground(tcell.ColorWhite).Background(tcell.ColorBlack))
4546

4647
dayView.worklogList.SetBorder(true)
4748
dayView.latestIssuesList.SetBorder(true)

0 commit comments

Comments
 (0)