Skip to content

Commit

Permalink
Refactor: simplify backup ID assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrajodas committed Jan 22, 2025
1 parent debadd5 commit 9606914
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ public function run(): void
public function generateReadCredentials(): array
{
$sapi = $this->initSapi();
/** @var string */
$backupId = $this->config->getBackupId() !== '' ? $this->config->getBackupId() : $sapi->generateId();
$backupId = $this->config->getBackupId() ?: $sapi->generateId();
if ($this->config->isUserDefinedCredentials()) {
$path = $this->config->getPath();
} else {
Expand Down

0 comments on commit 9606914

Please sign in to comment.