From 8ca5d893ca73ac99b486692a0a59efb9f453420c Mon Sep 17 00:00:00 2001 From: Selena Goods Date: Fri, 21 Jul 2023 14:17:54 -0400 Subject: [PATCH] Resolve linting errors --- plancheck/expect_sensitive_value.go | 1 - plancheck/expect_unknown_value.go | 1 - tfjsonpath/path.go | 10 +++++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/plancheck/expect_sensitive_value.go b/plancheck/expect_sensitive_value.go index 436940957..b6c3a5194 100644 --- a/plancheck/expect_sensitive_value.go +++ b/plancheck/expect_sensitive_value.go @@ -46,7 +46,6 @@ func (e expectSensitiveValue) CheckPlan(ctx context.Context, req CheckPlanReques } resp.Error = fmt.Errorf("%s - Resource not found in plan ResourceChanges", e.resourceAddress) - return } // ExpectSensitiveValue returns a plan check that asserts that the specified attribute at the given resource has a sensitive value. diff --git a/plancheck/expect_unknown_value.go b/plancheck/expect_unknown_value.go index 7882af43b..1569397c2 100644 --- a/plancheck/expect_unknown_value.go +++ b/plancheck/expect_unknown_value.go @@ -46,7 +46,6 @@ func (e expectUnknownValue) CheckPlan(ctx context.Context, req CheckPlanRequest, } resp.Error = fmt.Errorf("%s - Resource not found in plan ResourceChanges", e.resourceAddress) - return } // ExpectUnknownValue returns a plan check that asserts that the specified attribute at the given resource has an unknown value. diff --git a/tfjsonpath/path.go b/tfjsonpath/path.go index 09a91c770..ef3930dfb 100644 --- a/tfjsonpath/path.go +++ b/tfjsonpath/path.go @@ -25,13 +25,13 @@ import ( // For example, to represent the first element of a JSON array // underneath a "some_array" property of this JSON value: // -// { -// "some_array": [true] -// } +// { +// "some_array": [true] +// } // -// The path code would be represented by: +// The path code would be represented by: // -// tfjsonpath.New("some_array").AtSliceIndex(0) +// tfjsonpath.New("some_array").AtSliceIndex(0) // // [terraform-json]: (https://pkg.go.dev/github.com/hashicorp/terraform-json) type Path struct {