Skip to content
Myr

Simplify IsRune()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Muehlhaeuser · committed by Christian Muehlhaeuser · parent 4eff2d0 · Browse files · 1 file+1 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:key.go+1 added-4 removed
19 unmodified lines
20}2122// IsRune returns weather or not the key is a rune23func (k *KeyMsg) IsRune() bool {24 if k.Type == KeyRune {25 return true26 }27 return false24 return k.Type == KeyRune25}2627type Key struct {28 Type KeyType
104 unmodified lines