1
0

remove unnecessary var

This commit is contained in:
Arpad Ryszka 2025-11-01 04:29:11 +01:00
parent f7fcb5669e
commit cb3240747d

3
lib.go
View File

@ -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.