only: compatibility with Java 8

This commit is contained in:
kifir23917 2025-02-22 00:36:10 +03:00 committed by rusefillc
parent 59c3157f3c
commit e7a249f2c8
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public class CalibrationsHelper {
callbacks,
PREVIOUS_CALIBRATIONS_FILE_NAME
);
if (prevCalibrations.isEmpty()) {
if (!prevCalibrations.isPresent()) {
callbacks.logLine("Failed to back up current calibrations...");
return false;
}
@ -63,7 +63,7 @@ public class CalibrationsHelper {
callbacks,
UPDATED_CALIBRATIONS_FILE_NAME
);
if (updatedCalibrations.isEmpty()) {
if (!updatedCalibrations.isPresent()) {
callbacks.logLine("Failed to back up updated calibrations...");
return false;
}