mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 14:44:01 +03:00
Fix spelling issue
This commit is contained in:
+3
-3
@@ -22,13 +22,13 @@ func startServer(conf *config.Config) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
interm := map[string]interface{}{}
|
interim := map[string]interface{}{}
|
||||||
json.Unmarshal(first, &interm) // nolint: errcheck, gosec
|
json.Unmarshal(first, &interim) // nolint: errcheck, gosec
|
||||||
|
|
||||||
encoder := json.NewEncoder(w)
|
encoder := json.NewEncoder(w)
|
||||||
encoder.SetEscapeHTML(false)
|
encoder.SetEscapeHTML(false)
|
||||||
encoder.SetIndent("", " ")
|
encoder.SetIndent("", " ")
|
||||||
if err = encoder.Encode(interm); err != nil {
|
if err = encoder.Encode(interim); err != nil {
|
||||||
log.Errorw("Cannot encode json", "error", err)
|
log.Errorw("Cannot encode json", "error", err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user