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

1 commit

Author SHA1 Message Date
jtbx 63d3f4459d Theme: Fix robots partial "isset on nil" warning
All checks were successful
/ build (pull_request) Successful in 40s
/ cleanup-staging (pull_request) Successful in 1s
/ build (push) Successful in 12s
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.
2024-04-20 18:14:41 +02:00