mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 03:47:54 +02:00
Fix missing err != nil branch
This commit is contained in:
parent
d94e1bfa22
commit
1ab61f1d7d
@ -338,11 +338,13 @@ func (s *Server) getNumConnectionsHandler(w http.ResponseWriter, r *http.Request
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) handleNonCriticalError(err error) {
|
func (s *Server) handleNonCriticalError(err error) {
|
||||||
|
if err != nil {
|
||||||
if s.isProductionEnvironment {
|
if s.isProductionEnvironment {
|
||||||
fmt.Printf("Unexpected non-critical error: %v", err)
|
fmt.Printf("Unexpected non-critical error: %v", err)
|
||||||
} else {
|
} else {
|
||||||
panic(fmt.Errorf("unexpected non-critical error: %w", err))
|
panic(fmt.Errorf("unexpected non-critical error: %w", err))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) updateUsageData(ctx context.Context, version string, remoteAddr string, userId, deviceId string, numEntriesHandled int, isQuery bool) error {
|
func (s *Server) updateUsageData(ctx context.Context, version string, remoteAddr string, userId, deviceId string, numEntriesHandled int, isQuery bool) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user