Skip to content

Commit

Permalink
Merge pull request HXSecurity#10 from HXSecurity/fix-issues-2
Browse files Browse the repository at this point in the history
Fix issues 2
  • Loading branch information
exexute committed Apr 26, 2021
2 parents 94baf75 + fc1e350 commit 2910529
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void scan(File file) {
if (file.exists()) {
String packageName = file.getName();
String signature = SignatureAlgorithm.getSignature(file, ScaScanner.ALGORITHM);
if (null != packageName && null != signature) {
if (null != signature) {
AssestReport.sendReport(filePath, packageName, signature, ScaScanner.ALGORITHM);
}
}
Expand All @@ -51,7 +51,7 @@ public static void scanWithJarPackage(String path) {
InputStream is = getJarInputStream(path, entryName);
String signature = SignatureAlgorithm.getSignature(is, ScaScanner.ALGORITHM);
String packageName = entry.getName();
if (null != packageName && null != signature) {
if (null != signature) {
AssestReport.sendReport("jar:file:" + path + "!/" + entryName, packageName, signature, ScaScanner.ALGORITHM);
}
}
Expand Down

0 comments on commit 2910529

Please sign in to comment.