🎨 format code
This commit is contained in:
parent
b5453f02b7
commit
e074ddd235
|
@ -43,10 +43,11 @@ func Load() {
|
||||||
f, _ := os.Open("i18n")
|
f, _ := os.Open("i18n")
|
||||||
names, _ := f.Readdirnames(-1)
|
names, _ := f.Readdirnames(-1)
|
||||||
f.Close()
|
f.Close()
|
||||||
|
|
||||||
if len(Locales) == len(names)-1 {
|
if len(Locales) == len(names)-1 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, name := range names {
|
for _, name := range names {
|
||||||
if !strings.HasSuffix(name, ".json") {
|
if !strings.HasSuffix(name, ".json") {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue