only: compatibility with Java 8
This commit is contained in:
parent
59c3157f3c
commit
e7a249f2c8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue