From c8e332ae8e9e92d28632dd8e10a306e47d05af3c Mon Sep 17 00:00:00 2001 From: Gabriel Fukushima Date: Fri, 27 Sep 2024 17:25:34 +1000 Subject: [PATCH] spotless Signed-off-by: Gabriel Fukushima --- .../cli/subcommand/debug/DebugDbCommand.java | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/teku/src/main/java/tech/pegasys/teku/cli/subcommand/debug/DebugDbCommand.java b/teku/src/main/java/tech/pegasys/teku/cli/subcommand/debug/DebugDbCommand.java index 8c449a137f5..10b6f9130c6 100644 --- a/teku/src/main/java/tech/pegasys/teku/cli/subcommand/debug/DebugDbCommand.java +++ b/teku/src/main/java/tech/pegasys/teku/cli/subcommand/debug/DebugDbCommand.java @@ -143,24 +143,24 @@ public int getFinalizedState( } @Command( - name = "get-earliest-available-block-slot", - description = "Get the finalized state, if available, as SSZ", - mixinStandardHelpOptions = true, - showDefaultValues = true, - abbreviateSynopsis = true, - versionProvider = PicoCliVersionProvider.class, - synopsisHeading = "%n", - descriptionHeading = "%nDescription:%n%n", - optionListHeading = "%nOptions:%n", - footerHeading = "%n", - footer = "Teku is licensed under the Apache License 2.0") + name = "get-earliest-available-block-slot", + description = "Get the finalized state, if available, as SSZ", + mixinStandardHelpOptions = true, + showDefaultValues = true, + abbreviateSynopsis = true, + versionProvider = PicoCliVersionProvider.class, + synopsisHeading = "%n", + descriptionHeading = "%nDescription:%n%n", + optionListHeading = "%nOptions:%n", + footerHeading = "%n", + footer = "Teku is licensed under the Apache License 2.0") public int getEarliestAvailableBlockSlot( - @Mixin final BeaconNodeDataOptions beaconNodeDataOptions, - @Mixin final Eth2NetworkOptions eth2NetworkOptions) - throws Exception { + @Mixin final BeaconNodeDataOptions beaconNodeDataOptions, + @Mixin final Eth2NetworkOptions eth2NetworkOptions) + throws Exception { try (final Database database = createDatabase(beaconNodeDataOptions, eth2NetworkOptions)) { Optional earliestAvailableBlockSlot = database.getEarliestAvailableBlockSlot(); - earliestAvailableBlockSlot.ifPresent(System.out::println); + earliestAvailableBlockSlot.ifPresent(System.out::println); } return 0; } @@ -891,5 +891,4 @@ private int writeBlock(final Path outputFile, final Optional } return 0; } - }