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 {
|
func (e editorFunc[S]) ReleaseState(state any) []rune {
|
||||||
s, _ := state.(S)
|
s, _ := state.(S)
|
||||||
r := e.releaseState(s)
|
return e.releaseState(s)
|
||||||
return r
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Func can be used to define an Editor providing only the edit and releaseState functions.
|
// Func can be used to define an Editor providing only the edit and releaseState functions.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user