Skip to content

Commit

Permalink
ESQL: Remove unused StringBuilder
Browse files Browse the repository at this point in the history
It's a small thing but it saves an extra copy that we don't need and
makes the code easier to read.
  • Loading branch information
nik9000 committed Dec 12, 2023
1 parent bac1736 commit 39c776a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,7 @@ public List<Driver> createDrivers(String sessionId) {

@Override
public String describe() {
StringBuilder sb = new StringBuilder();
sb.append(driverFactories.stream().map(DriverFactory::describe).collect(joining("\n")));
return sb.toString();
return driverFactories.stream().map(DriverFactory::describe).collect(joining("\n"));
}
}
}

0 comments on commit 39c776a

Please sign in to comment.