mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-19 09:38:03 +02:00
core/lint: upgrade golangci-lint, replace interface{} with any (#5099)
* core/lint: upgrade golangci-lint, replace interface{} with any * regen proto
This commit is contained in:
parent
614048ae9c
commit
1a5b8b606f
135 changed files with 341 additions and 340 deletions
|
@ -101,7 +101,7 @@ func (p *Parser) ParseJSON(r io.Reader) (*Policy, error) {
|
|||
|
||||
// ParseYAML parses a raw YAML document into a policy.
|
||||
func (p *Parser) ParseYAML(r io.Reader) (*Policy, error) {
|
||||
var obj interface{}
|
||||
var obj any
|
||||
err := yaml.NewDecoder(r).Decode(&obj)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue