Forgot to set err on Scan
This commit is contained in:
parent
12d59d5cb6
commit
2188aadaf0
1 changed files with 1 additions and 1 deletions
2
emoji.go
2
emoji.go
|
@ -107,7 +107,7 @@ func (em Table) String() string {
|
||||||
// See <https://github.com/googlei18n/noto-emoji/tree/master/png/128>
|
// See <https://github.com/googlei18n/noto-emoji/tree/master/png/128>
|
||||||
func ScanEmojiDirectory(emojipath string) (tab Table, err error) {
|
func ScanEmojiDirectory(emojipath string) (tab Table, err error) {
|
||||||
tab = make(Table)
|
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
|
// Ignore non-images
|
||||||
if !strings.HasSuffix(strings.ToLower(path), ".png") {
|
if !strings.HasSuffix(strings.ToLower(path), ".png") {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue