digitalocean / terraform-provider-digitalocean

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

Enable failing gosimple check: S1034 #1221

Closed loosla closed 8 hours ago

loosla commented 1 week ago

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

Steps:

  1. Remove S1034 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