digitalocean / terraform-provider-digitalocean

Terraform DigitalOcean provider
https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs
Mozilla Public License 2.0
510 stars 278 forks source link

Enable failing gosimple check: S1039 #1220

Closed loosla closed 1 month ago

loosla commented 2 months ago

Some gosimple checks are disabled. Please enable the failing check S1039 and make the necessary changes to ensure gosimple checks pass.

Steps:

  1. Remove S1039 from https://github.com/digitalocean/terraform-provider-digitalocean/blob/6593bad18758574921e74670c9df08ca8e982566/.golangci.yml#L12
  2. Run make lint from the root directory of the repo to see the issues to fix
  3. Fix the issues to make make lint pass