Skip to content

Commit

Permalink
Dumper: delete a redundant null check
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Sep 17, 2023
1 parent 930190b commit d13b88c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions HeartLibrary/src/main/java/jme3utilities/debug/Dumper.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,10 @@ public void dump(Camera camera, String indent) {
stream.print(indent);
String description = describer.describe(camera);
stream.print(description);

if (camera != null) {
addLine(indent);
String desc2 = describer.describeMore(camera);
stream.print(' ');
stream.print(desc2);
}
addLine(indent);
String desc2 = describer.describeMore(camera);
stream.print(' ');
stream.print(desc2);
}

/**
Expand Down

0 comments on commit d13b88c

Please sign in to comment.