From 8429f945f758e4ec39b8ef26c45e79ded3079f3d Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Tue, 11 Jan 2022 21:20:32 -0500 Subject: [PATCH] remove unnecessary code --- core/src/processing/core/PShapeSVG.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/core/PShapeSVG.java b/core/src/processing/core/PShapeSVG.java index f572406eb..06cf83131 100644 --- a/core/src/processing/core/PShapeSVG.java +++ b/core/src/processing/core/PShapeSVG.java @@ -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 {