SUPPORT-8841: rename

This commit is contained in:
Alexandr Shalaginov 2024-12-30 09:57:32 +03:00
parent 038d7b1288
commit a34f46a707

View file

@ -99,10 +99,10 @@ public class FileScanService {
private void checkScanResult(String result) {
for (String line : result.split("\n")) {
String[] linePart = line.split(":");
if (linePart.length > 1) {
if (linePart[0].startsWith(passwordProtectedResultName)
&& Integer.parseInt(linePart[1].trim()) > 0) {
String[] lineParts = line.split(":");
if (lineParts.length > 1) {
if (lineParts[0].startsWith(passwordProtectedResultName)
&& Integer.parseInt(lineParts[1].trim()) > 0) {
throw new AvException("Detected password-protected file");
}
}