Skip to content

Commit

Permalink
fix: golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
soneda-yuya committed Jan 12, 2025
1 parent 06bff2e commit c61e839
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/internal/locales/gen/errorkeys/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ func main() {
if err != nil {
panic(err)
}
defer file.Close()
defer func() {
if err := file.Close(); err != nil {
panic(err)
}
}()

var data map[string]interface{}
if err := json.NewDecoder(file).Decode(&data); err != nil {
Expand Down

0 comments on commit c61e839

Please sign in to comment.