Skip to content

Commit

Permalink
[java] Add braces rather than assume a single statement in a block. N…
Browse files Browse the repository at this point in the history
…o logical changes
  • Loading branch information
shs96c committed Sep 19, 2023
1 parent 304df19 commit 3a126ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/src/org/openqa/selenium/grid/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ default Optional<Boolean> getBool(String section, String option) {

default Optional<List<List<String>>> getArray(String section, String option) {
Optional<List<String>> flatConfigs = getAll(section, option);
if (!flatConfigs.isPresent()) return Optional.empty();
if (!flatConfigs.isPresent()) {
return Optional.empty();
}

List<String> configItem = new ArrayList<>();
List<List<String>> configList = new ArrayList<>();
Expand Down

0 comments on commit 3a126ba

Please sign in to comment.