remove unnecessary var
This commit is contained in:
parent
f7fcb5669e
commit
cb3240747d
3
lib.go
3
lib.go
@ -38,8 +38,7 @@ func (e editorFunc[S]) Edit(r rune, state any) ([]rune, any) {
|
||||
|
||||
func (e editorFunc[S]) ReleaseState(state any) []rune {
|
||||
s, _ := state.(S)
|
||||
r := e.releaseState(s)
|
||||
return r
|
||||
return e.releaseState(s)
|
||||
}
|
||||
|
||||
// Func can be used to define an Editor providing only the edit and releaseState functions.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user