From 01fa452209dcea101809fd1b224e029ae4f4a9d9 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 16 Nov 2017 23:53:23 +0100 Subject: main(): Remove commented `return` This error handler now lives inside a `thread::spawn()` rather than inside the HTTP request handler, so we shouldn't return an HTTP response here. --- src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 211a680..6bb4594 100644 --- a/src/main.rs +++ b/src/main.rs @@ -158,11 +158,7 @@ fn main() { github_token, ) { Ok(_) => {}, - Err(e) => { - error!("{}", e.to_string()); - - // return internal_server_error() - }, + Err(e) => error!("{}", e.to_string()), }; }); -- cgit v1.2.3