mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 16:24:00 +01:00
Follow up to #103: assign err from fmt.Fprintf to _ to ensure go-errcheck doesn't flag it
This commit is contained in:
parent
68e3a813c9
commit
aa3c7fc41a
@ -153,12 +153,12 @@ func statsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Fprintf(w, "Num devices: %d\n", numDevices)
|
||||
fmt.Fprintf(w, "Num history entries processed: %d\n", nep.Total)
|
||||
fmt.Fprintf(w, "Num DB entries: %d\n", numDbEntries)
|
||||
fmt.Fprintf(w, "Weekly active installs: %d\n", weeklyActiveInstalls)
|
||||
fmt.Fprintf(w, "Weekly active queries: %d\n", weeklyQueryUsers)
|
||||
fmt.Fprintf(w, "Last registration: %s\n", lastRegistration)
|
||||
_, _ = fmt.Fprintf(w, "Num devices: %d\n", numDevices)
|
||||
_, _ = fmt.Fprintf(w, "Num history entries processed: %d\n", nep.Total)
|
||||
_, _ = fmt.Fprintf(w, "Num DB entries: %d\n", numDbEntries)
|
||||
_, _ = fmt.Fprintf(w, "Weekly active installs: %d\n", weeklyActiveInstalls)
|
||||
_, _ = fmt.Fprintf(w, "Weekly active queries: %d\n", weeklyQueryUsers)
|
||||
_, _ = fmt.Fprintf(w, "Last registration: %s\n", lastRegistration)
|
||||
}
|
||||
|
||||
func apiSubmitHandler(w http.ResponseWriter, r *http.Request) {
|
||||
@ -491,7 +491,7 @@ func getNumConnectionsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Fprintf(w, "%#v", sqlDb.Stats().OpenConnections)
|
||||
_, _ = fmt.Fprintf(w, "%#v", sqlDb.Stats().OpenConnections)
|
||||
}
|
||||
|
||||
func isTestEnvironment() bool {
|
||||
|
Loading…
Reference in New Issue
Block a user