From 6edf2a5215ff74fc3d13bd3cf4562de6f2128c30 Mon Sep 17 00:00:00 2001 From: Paco Date: Tue, 20 Jun 2017 20:41:50 -0300 Subject: [PATCH] styling fix just read how to style correctly --- core/src/processing/core/PApplet.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 1b899361a..f046d50cf 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -5922,8 +5922,11 @@ public class PApplet implements PConstants { public XML loadXML(String filename, String options) { try { BufferedReader br = createReader(filename); - if (br != null) return new XML(br, options); - else br = null; + if (br != null) { + return new XML(br, options); + } else { + br = null; + } // can't use catch-all exception, since it might catch the // RuntimeException about the incorrect case sensitivity