Simplify IsRune()

This commit is contained in:
Christian Muehlhaeuser 2020-01-25 06:56:53 +01:00
parent 4eff2d0ccc
commit 47bfe2b5df
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E

5
key.go
View File

@ -21,10 +21,7 @@ func (k *KeyMsg) String() string {
// IsRune returns weather or not the key is a rune
func (k *KeyMsg) IsRune() bool {
if k.Type == KeyRune {
return true
}
return false
return k.Type == KeyRune
}
type Key struct {