Skip to content

Commit fa701ee

Browse files
Update core/Command/OCM/ListKeys.php
Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Micke Nordin <mickenordin@users.noreply.github.com>
1 parent d0f49c9 commit fa701ee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/Command/OCM/ListKeys.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
3535
$format = $input->getOption('output');
3636
if ($format === self::OUTPUT_FORMAT_JSON || $format === self::OUTPUT_FORMAT_JSON_PRETTY) {
3737
$output->writeln(json_encode($keys, $format === self::OUTPUT_FORMAT_JSON_PRETTY ? JSON_PRETTY_PRINT : 0));
38-
return 0;
38+
return self::SUCCESS;
3939
}
4040

4141
if ($keys === []) {
4242
$output->writeln('<comment>No Ed25519 keys yet; one will be generated on first OCM request.</comment>');
43-
return 0;
43+
return self::SUCCESS;
4444
}
4545

4646
$table = new Table($output);
@@ -49,6 +49,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4949
$table->addRow([$key['poolId'], $key['slot'] ?? '-', $key['kid']]);
5050
}
5151
$table->render();
52-
return 0;
52+
return self::SUCCESS;
5353
}
5454
}

0 commit comments

Comments
 (0)