internal/earlyconfig: staticcheck
This commit is contained in:
parent
f0c3ddf5a1
commit
d22e08bd32
|
@ -158,8 +158,8 @@ func (c *Config) ProviderDependencies() (*moduledeps.Module, tfdiags.Diagnostics
|
||||||
for name, reqs := range c.Module.RequiredProviders {
|
for name, reqs := range c.Module.RequiredProviders {
|
||||||
var fqn addrs.Provider
|
var fqn addrs.Provider
|
||||||
if source := reqs.Source; source != "" {
|
if source := reqs.Source; source != "" {
|
||||||
addr, diags := addrs.ParseProviderSourceString(source)
|
addr, parseDiags := addrs.ParseProviderSourceString(source)
|
||||||
if diags.HasErrors() {
|
if parseDiags.HasErrors() {
|
||||||
diags = diags.Append(wrapDiagnostic(tfconfig.Diagnostic{
|
diags = diags.Append(wrapDiagnostic(tfconfig.Diagnostic{
|
||||||
Severity: tfconfig.DiagError,
|
Severity: tfconfig.DiagError,
|
||||||
Summary: "Invalid provider source",
|
Summary: "Invalid provider source",
|
||||||
|
|
Loading…
Reference in New Issue