Skip to content

Commit

Permalink
Fix spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Nov 13, 2024
1 parent 680dd55 commit 574e734
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.StringJoiner;

Expand Down Expand Up @@ -140,6 +141,9 @@ private static boolean isBalToolSpecificFile(Path filePath) {
}

private static boolean hasBallerinaToml(Path filePath) {
if (Objects.isNull(filePath)) {
return false;

Check warning on line 145 in misc/debug-adapter/modules/debug-adapter-core/src/main/java/org/ballerinalang/debugadapter/utils/PackageUtils.java

View check run for this annotation

Codecov / codecov/patch

misc/debug-adapter/modules/debug-adapter-core/src/main/java/org/ballerinalang/debugadapter/utils/PackageUtils.java#L145

Added line #L145 was not covered by tests
}
Path absFilePath = filePath.toAbsolutePath().normalize();
return absFilePath.resolve(BALLERINA_TOML).toFile().exists();
}
Expand Down

0 comments on commit 574e734

Please sign in to comment.