Skip to content

Commit

Permalink
fix: first init err
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed May 13, 2021
1 parent aa24500 commit 9437233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func initCategoriesData(isExist bool) (*utils.CategoryUnitCollection, error) {

func initSentencesMap(isExist bool) (*map[string]bundleSentenceCollection, int, error) {
if !isExist {
return nil, 0, nil
return &map[string]bundleSentenceCollection{}, 0, nil
}
return getCurrentSentencesMap(categoriesData)
}
Expand Down

0 comments on commit 9437233

Please sign in to comment.