refactor(blogo,core): remove redundant asserts in ServeHTTP
This commit is contained in:
@@ -104,8 +104,6 @@ type server struct {
|
||||
}
|
||||
|
||||
func (srv *server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
srv.assert.NotNil(srv.sourcer, "A sourcer needs to be available to serve files")
|
||||
srv.assert.NotNil(srv.renderer, "A renderer needs to be available to serve files")
|
||||
srv.assert.NotNil(srv.log)
|
||||
srv.assert.NotNil(w)
|
||||
srv.assert.NotNil(r)
|
||||
|
||||
Reference in New Issue
Block a user