Skip to content

Commit c4dc6d4

Browse files
committed
fix: handle empty code title
1 parent 6660eaf commit c4dc6d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Console/Commands/ProLangAssets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ function member
11021102
if (array_key_exists('rawCodeLink', $value)) {
11031103
$value['codeTitle'] = str_contains($value['rawCodeLink'], 'RosettaCodeData')
11041104
? 'Fibonacci'
1105-
: (str_contains($value['rawCodeLink'], 'hello-world') ? 'Hello worlds' : null);
1105+
: (str_contains($value['rawCodeLink'], 'hello-world') ? 'Hello worlds' : 'Sample code');
11061106
}
11071107

11081108
if (count($value) > 0) {

0 commit comments

Comments
 (0)