Skip to content

Commit

Permalink
Improvements from @michelleblom's review.
Browse files Browse the repository at this point in the history
  • Loading branch information
vteague committed Aug 9, 2024
1 parent 76f0003 commit 83dd446
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@ public static void jsonOut(final String query, final OutputStream os) {

try {
os.write("[".getBytes(StandardCharsets.UTF_8));
Object[] resultsArr = results.toArray();

for(Object line : resultsArr) {
for(final Object line : results.toArray()) {
try {
os.write(line.toString().getBytes(StandardCharsets.UTF_8));
} catch (java.io.IOException e) {
Expand Down

0 comments on commit 83dd446

Please sign in to comment.