Skip to content

Commit

Permalink
Finalias
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Oct 29, 2024
1 parent d7ce2e4 commit 36d9e7a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1957,11 +1957,11 @@ private String configIsPending(boolean debugOut) {
Date currentStateTime = catchToNull(() -> deviceState.timestamp);
Date stateLastConfig = catchToNull(() -> deviceState.system.last_config);
Date lastConfig = catchToNull(() -> deviceConfig.timestamp);
boolean stateWasUpdated =
final boolean stateWasUpdated =
currentStateTime != null && !currentStateTime.equals(configStateStart);
boolean lastConfigSynced = stateLastConfig == null || stateLastConfig.equals(lastConfig);
final boolean lastConfigSynced = stateLastConfig == null || stateLastConfig.equals(lastConfig);
final boolean transactionsClean = configTransactions.isEmpty();

boolean transactionsClean = configTransactions.isEmpty();
List<String> failures = new ArrayList<>();
ifNotTrueThen(stateWasUpdated, () -> failures.add("device state not updated since start"));
ifNotTrueThen(lastStartSynced, () -> failures.add("last_start not synchronized in config"));
Expand Down

0 comments on commit 36d9e7a

Please sign in to comment.