mirror of https://github.com/pulumi/pulumi.git
ef7b123bba
Fixes https://github.com/pulumi/pulumi-terraform-bridge/issues/1201 hcl.Diagnostics implements the Error interface, but this means a list of zero diagnostics still looks like a non-nil error, which throws of normal "if err == nil" checks. This changes a few use sites of hcl.Diagnostics to ensure we return nil when there aren't any diagnostics rather than an empty slice. This ensures if they get cast to `Error` they don't trip up standard `err == nil` checks. |
||
---|---|---|
.. | ||
bind.go | ||
docs_parser.go | ||
docs_renderer.go | ||
docs_test.go | ||
loader.go | ||
loader_schema_test.go | ||
loader_test.go | ||
mock_pulumi_schema.go | ||
package_reference.go | ||
pulumi.json | ||
schema.go | ||
schema_test.go |