🎨 format code

This commit is contained in:
Liang Ding 2016-12-28 11:17:32 +08:00
parent b5453f02b7
commit e074ddd235
1 changed files with 2 additions and 1 deletions

View File

@ -43,10 +43,11 @@ func Load() {
f, _ := os.Open("i18n")
names, _ := f.Readdirnames(-1)
f.Close()
if len(Locales) == len(names)-1 {
return
}
for _, name := range names {
if !strings.HasSuffix(name, ".json") {
continue