Skip to content

Commit c91c02f

Browse files
committed
Fix for struct in Go
1 parent 164d6ef commit c91c02f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/Services/Eggs/EggConfigurationService.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@ protected function convertStartupToNewFormat(array $startup)
6767
{
6868
$done = Arr::get($startup, 'done');
6969

70-
return array_filter([
70+
return [
7171
'done' => is_string($done) ? [$done] : $done,
72-
'user_interaction' => Arr::get($startup, 'userInteraction'),
73-
], function ($datum) {
74-
return ! is_null($datum);
75-
});
72+
'user_interaction' => Arr::get($startup, 'userInteraction') ?? [],
73+
'strip_ansi' => Arr::get($startup, 'strip_ansi') ?? false,
74+
];
7675
}
7776

7877
/**

0 commit comments

Comments
 (0)