Fix failure with PO translation linter when there are no translations
When the HTML todolist contained a string that had no translations this method was producing an error as it tried to call `.include?` on a `nil` object. Fix this by checking for the presence of translations first. Caused by: https://gitlab.com/gitlab-org/gitlab/-/issues/217933 Errors appearing in: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/38772
Showing
Please register or sign in to comment