diff --git a/emoji.go b/emoji.go index 783b779..66df2b7 100644 --- a/emoji.go +++ b/emoji.go @@ -107,7 +107,7 @@ func (em Table) String() string { // See func ScanEmojiDirectory(emojipath string) (tab Table, err error) { tab = make(Table) - filepath.Walk(emojipath, func(path string, info os.FileInfo, err error) error { + err = filepath.Walk(emojipath, func(path string, info os.FileInfo, err error) error { // Ignore non-images if !strings.HasSuffix(strings.ToLower(path), ".png") { return nil