Browse Source

fixed bad return statement

pull/34/head
David Haukeness 5 years ago
parent
commit
f7f0e61ecd
No known key found for this signature in database
GPG Key ID: A7F1091956853EF9
  1. 2
      emojiMap.go

2
emojiMap.go

@ -15,7 +15,7 @@ func renderUnicodeEmoji(data emojiData) (string, error) { @@ -15,7 +15,7 @@ func renderUnicodeEmoji(data emojiData) (string, error) {
emj, err := strconv.ParseInt(data.Unicode, 16, 32)
if err != nil {
// because not all of them are parseable (like keycaps \u0031-FE0F-20E3)
return nil, err
return "", err
} else {
return string(emj), err
}

Loading…
Cancel
Save