Skip to content

Commit 5718254

Browse files
committed
Remove redundant duplicate API call in brancher:list command
The brancherApp->list() was called twice with the first result discarded, causing double API requests and potential jq parse errors when the first call failed and wrote an exception stack trace to stdout.
1 parent 6af515e commit 5718254

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

app/Commands/ListBrancherNodes.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public function handle()
3737

3838
$originHypernode = $this->argument('hypernode');
3939

40-
$client->brancherApp->list($originHypernode);
41-
4240
$branchers = $client->brancherApp->list($originHypernode);
4341

4442
if ($this->option('output') === 'json') {

0 commit comments

Comments
 (0)