Fix lint error

This commit is contained in:
Deluan 2020-05-04 20:46:16 -04:00
parent 2f4d4c6e38
commit bb01c8973f
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ func loadTranslation(fs http.FileSystem, fileName string) (translation translati
return
}
data, err := ioutil.ReadAll(file)
if err != nil {
return
}
var out map[string]interface{}
if err = json.Unmarshal(data, &out); err != nil {
return