Skip to content

Commit

Permalink
fix 解决文件命名导致的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
data54388 committed Apr 26, 2021
1 parent 7f64871 commit fc1e350
Showing 1 changed file 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 fc1e350

Please sign in to comment.