Skip to content

Commit

Permalink
Skip linting for weird JSON errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanratcliffe committed Aug 14, 2024
1 parent 6299184 commit 1d6182a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sources/lambda/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func functionGetFunc(ctx context.Context, client LambdaClient, scope string, inp
if err == nil && policyResponse != nil && policyResponse.Policy != nil {
// Try to parse the policy
policy := PolicyDocument{}
err := json.Unmarshal([]byte(*policyResponse.Policy), &policy)
err := json.Unmarshal([]byte(*policyResponse.Policy), &policy) //nolint:all

if err == nil {
linkedItemQueries = ExtractLinksFromPolicy(&policy)
Expand Down
2 changes: 1 addition & 1 deletion sources/lambda/policy_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var testPolicyJSON string = `{

func TestParsePolicy(t *testing.T) {
policy := PolicyDocument{}
err := json.Unmarshal([]byte(testPolicyJSON), &policy)
err := json.Unmarshal([]byte(testPolicyJSON), &policy) //nolint:all

if err != nil {
t.Error(err)
Expand Down

0 comments on commit 1d6182a

Please sign in to comment.