Sfoglia il codice sorgente

Remove unreachable code

bel2125 8 anni fa
parent
commit
0380280c51
1 ha cambiato i file con 0 aggiunte e 3 eliminazioni
  1. 0 3
      src/civetweb.c

+ 0 - 3
src/civetweb.c

@@ -8925,9 +8925,6 @@ mg_send_mime_file2(struct mg_connection *conn,
 
 	if (mg_stat(conn, path, &file.stat)) {
 		if (file.stat.is_directory) {
-			if (!conn) {
-				return;
-			}
 			if (!mg_strcasecmp(conn->ctx->config[ENABLE_DIRECTORY_LISTING],
 			                   "yes")) {
 				handle_directory_request(conn, path);