Skip to content

Commit

Permalink
Inline single use local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Feb 11, 2024
1 parent b8c0151 commit f69e03b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ private long calculateLargest() {
long result;
// TODO This can probably be optimized into a better mathematical statement
if (d == 1) {
final BHSDCodec bh0 = new BHSDCodec(b, h);
return bh0.largest();
return new BHSDCodec(b, h).largest();
}
switch (s) {
case 0:
Expand Down

0 comments on commit f69e03b

Please sign in to comment.