Skip to content

Commit

Permalink
fix go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
kyokomi committed Aug 11, 2015
1 parent 6a079c4 commit d1f6e02
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ func CodeMap() map[string]string {
}

func emojize(x string) string {
result := x

str, ok := emojiCodeMap[string(x)]
str, ok := emojiCodeMap[x]
if ok {
result = str + ReplacePadding
return str + ReplacePadding
}
return result
return x
}

func replaseEmoji(input *bytes.Buffer) string {
Expand Down

0 comments on commit d1f6e02

Please sign in to comment.