Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
templates: linting: fix "error return value is not checked (errchkjson)
The linter is correct; given that these functions do not allow for an error to be returned, we panic. Alternatively, we could return the error string as output, or add a `//nolint:errchkjson` comment. templates/templates.go:17:3: Error return value of `(*encoding/json.Encoder).Encode` is not checked: unsafe type `interface{}` found (errchkjson) enc.Encode(v) ^ Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information