mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-23 11:27:23 +00:00
fixed bad return statement
This commit is contained in:
@ -15,7 +15,7 @@ func renderUnicodeEmoji(data emojiData) (string, error) {
|
|||||||
emj, err := strconv.ParseInt(data.Unicode, 16, 32)
|
emj, err := strconv.ParseInt(data.Unicode, 16, 32)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// because not all of them are parseable (like keycaps \u0031-FE0F-20E3)
|
// because not all of them are parseable (like keycaps \u0031-FE0F-20E3)
|
||||||
return nil, err
|
return "", err
|
||||||
} else {
|
} else {
|
||||||
return string(emj), err
|
return string(emj), err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user