[or-cvs] [metrics-web/master 1/2] Remove some unnecessary code.
karsten at torproject.org
karsten at torproject.org
Tue Oct 19 10:31:52 UTC 2010
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Tue, 19 Oct 2010 11:14:33 +0200
Subject: Remove some unnecessary code.
Commit: d28a54ec318e4560c89f5659f0436863123e531e
---
.../torproject/ernie/web/GraphImageServlet.java | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/org/torproject/ernie/web/GraphImageServlet.java b/src/org/torproject/ernie/web/GraphImageServlet.java
index ae0c82d..819ef71 100644
--- a/src/org/torproject/ernie/web/GraphImageServlet.java
+++ b/src/org/torproject/ernie/web/GraphImageServlet.java
@@ -33,10 +33,6 @@ public class GraphImageServlet extends HttpServlet {
/* Find out which graph type was requested and make sure we know this
* graph type. */
String requestedGraph = request.getRequestURI();
- if (requestedGraph == null) {
- response.sendError(HttpServletResponse.SC_BAD_REQUEST);
- return;
- }
if (requestedGraph.endsWith(".png")) {
requestedGraph = requestedGraph.substring(0, requestedGraph.length()
- ".png".length());
--
1.7.1
More information about the tor-commits
mailing list