Forgot to set err on Scan

This commit is contained in:
Hamcha 2018-11-16 15:21:02 +01:00
parent 12d59d5cb6
commit 2188aadaf0
Signed by: hamcha
GPG Key ID: A40413D21021EAEE
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ func (em Table) String() string {
// See <https://github.com/googlei18n/noto-emoji/tree/master/png/128>
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