Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service/cloudwatchlogs: Fixes for tfproviderlint R002 #11921

Merged
merged 1 commit into from
Feb 26, 2020

Commits on Feb 5, 2020

  1. service/cloudwatchlogs: Fixes for tfproviderlint R002

    Reference: #9952
    
    Remove pointer value dereferences, which can cause potential panics and are extraneous as `Set()` automatically handles pointer types including when `nil`.
    
    Previously:
    
    ```
    aws/resource_aws_cloudwatch_log_destination_policy.go:77:26: R002: ResourceData.Set() pointer value dereference is extraneous
    aws/resource_aws_cloudwatch_log_resource_policy.go:77:27: R002: ResourceData.Set() pointer value dereference is extraneous
    ```
    
    Output from acceptance testing:
    
    ```
    --- PASS: TestAccAWSCloudwatchLogDestinationPolicy_basic (86.97s)
    
    --- PASS: TestAccAWSCloudWatchLogResourcePolicy_basic (31.10s)
    ```
    bflad committed Feb 5, 2020
    Configuration menu
    Copy the full SHA
    d1300e3 View commit details
    Browse the repository at this point in the history