remove unnecessary code

This commit is contained in:
Ben Fry
2022-01-11 21:20:32 -05:00
parent 4d358ce4a6
commit 8429f945f7
+1 -1
View File
@@ -121,7 +121,7 @@ public class PShapeSVG extends PShape {
this(null, svg, true);
if (!svg.getName().equals("svg")) {
if (svg.getName().toLowerCase().equals("html")) {
if (svg.getName().equalsIgnoreCase("html")) {
// Common case is that files aren't downloaded properly
throw new RuntimeException("This appears to be a web page, not an SVG file.");
} else {