Theme: Fix robots partial "isset on nil" warning #57

Merged
c6ristian merged 1 commit from fix/isset-warning into main 2024-04-20 18:15:05 +02:00
Owner

As not all pages have the robots param defined, we got a warning:

WARN  calling IsSet with unsupported type "invalid" (<nil>) will always return false.

This is solved by adding an additional "isset" check.

As not all pages have the robots param defined, we got a warning: ``` WARN calling IsSet with unsupported type "invalid" (<nil>) will always return false. ``` This is solved by adding an additional "isset" check.
First-time contributor

You can view your changes at https://staging.hamburg.ccc.de/pr57/

You can view your changes at https://staging.hamburg.ccc.de/pr57/
c6ristian approved these changes 2024-04-20 18:14:12 +02:00
Dismissed
c6ristian left a comment
Owner

LGTM

LGTM
c6ristian force-pushed fix/isset-warning from d9fd1381b9 to 63d3f4459d 2024-04-20 18:14:43 +02:00 Compare
c6ristian approved these changes 2024-04-20 18:14:56 +02:00
c6ristian merged commit 63d3f4459d into main 2024-04-20 18:15:05 +02:00
c6ristian deleted branch fix/isset-warning 2024-04-20 18:15:05 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: CCCHH/ccchh-website#57
No description provided.