From f0c3ddf5a132db73f8320e97ddd4f843be1839de Mon Sep 17 00:00:00 2001 From: James Bardin Date: Tue, 1 Dec 2020 16:26:11 -0500 Subject: [PATCH] internal/getproviders: staticcheck --- internal/getproviders/registry_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/getproviders/registry_client.go b/internal/getproviders/registry_client.go index befa74274..7608fb806 100644 --- a/internal/getproviders/registry_client.go +++ b/internal/getproviders/registry_client.go @@ -261,7 +261,7 @@ func (c *registryClient) PackageMeta(ctx context.Context, provider addrs.Provide match = true } } - if match == false { + if !match { // If the protocol version is not supported, try to find the closest // matching version. closest, err := c.findClosestProtocolCompatibleVersion(ctx, provider, version)