Skip to content

Commit

Permalink
🚨 fix some 'code smells': unused import, use isEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Lum committed Mar 21, 2024
1 parent ec1b802 commit 1802196
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/math/ASCIIMathTeXImg.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ of this software and associated documentation files (the "Software"), to deal
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class ASCIIMathTeXImg {
Expand Down Expand Up @@ -882,7 +881,7 @@ private String[] aAMTparseExpr(String str, boolean rightbracket) {

pos.add(len);
int lastmxsubcnt = -1;
if (mxnestingd == 0 && pos.size() > 0 && matrix) {
if (mxnestingd == 0 && !pos.isEmpty() && matrix) {
for (int i = 0; i < pos.size() - 1; i++) {
List<String> subarr = null;
if (i > 0)
Expand Down
10 changes: 5 additions & 5 deletions docs/jacocoSummary.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
|Type | Missed/Total| Coverage|
|:--- | ---:| ---:|
|INSTRUCTION|~~78/6213~~ 78/6203| ~~98.74~~ 98.74%|
|BRANCH |(Not Changed)41/357|(Not Changed)88.52%|
|LINE | ~~11/415~~ 11/413| ~~97.35~~ 97.34%|
|Type | Missed/Total| Coverage|
|:--- | ---:| ---:|
|INSTRUCTION|(Not Changed)78/6203|(Not Changed)98.74%|
|BRANCH | (Not Changed)41/357|(Not Changed)88.52%|
|LINE | (Not Changed)11/413|(Not Changed)97.34%|

Class list with less coverage (Worst 5)

Expand Down

0 comments on commit 1802196

Please sign in to comment.