Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed May 10, 2024
1 parent 816f96c commit 26a2669
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import (
"github.com/mitchellh/hashstructure/v2"
)

// Eval is an evaluatable value, it stores a cached value and a function to
// recompute it. It's bindings are what we check to see if we need to recompute
// the value.
//
// By default it is also cached.
type Eval[T any] struct {
val T
fn func() T
Expand Down
1 change: 1 addition & 0 deletions field_multiselect.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ func (m *MultiSelect[T]) Options(options ...Option[T]) *MultiSelect[T] {
return m
}

// OptionsFunc sets the options func of the multi-select field.
func (m *MultiSelect[T]) OptionsFunc(f func() []Option[T], bindings any) *MultiSelect[T] {
m.options.fn = f
m.options.bindings = bindings
Expand Down
1 change: 0 additions & 1 deletion field_select.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ func (s *Select[T]) updateViewportHeight() {
return
}

const minHeight = 1
s.viewport.Height = max(minHeight, s.height-
lipgloss.Height(s.titleView())-
lipgloss.Height(s.descriptionView()))
Expand Down
5 changes: 1 addition & 4 deletions group.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,7 @@ func (g *Group) Errors() []error {
//
// This is used to update all TitleFunc, DescriptionFunc, and ...Func update
// methods to make all fields dynamically update based on user input.
type updateFieldMsg struct {
id int
msg tea.Msg
}
type updateFieldMsg struct{}

// nextFieldMsg is a message to move to the next field,
//
Expand Down

0 comments on commit 26a2669

Please sign in to comment.