From 3a126babc77dd5af4cd8fb0c45d8c0eb172c7b8c Mon Sep 17 00:00:00 2001 From: Simon Mavi Stewart Date: Tue, 19 Sep 2023 18:57:04 +0100 Subject: [PATCH] [java] Add braces rather than assume a single statement in a block. No logical changes --- java/src/org/openqa/selenium/grid/config/Config.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/src/org/openqa/selenium/grid/config/Config.java b/java/src/org/openqa/selenium/grid/config/Config.java index 2c83d621e6005..2b9e899746311 100644 --- a/java/src/org/openqa/selenium/grid/config/Config.java +++ b/java/src/org/openqa/selenium/grid/config/Config.java @@ -49,7 +49,9 @@ default Optional getBool(String section, String option) { default Optional>> getArray(String section, String option) { Optional> flatConfigs = getAll(section, option); - if (!flatConfigs.isPresent()) return Optional.empty(); + if (!flatConfigs.isPresent()) { + return Optional.empty(); + } List configItem = new ArrayList<>(); List> configList = new ArrayList<>();