Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
belokobylskii.i committed Dec 6, 2024
1 parent e323f38 commit f44fe05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion selectel/mks.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ func expandMKSNodegroupV1Labels(labels map[string]interface{}) map[string]string

func expandAndValidateMKSClusterV1OIDC(d *schema.ResourceData) (cluster.OIDC, error) {
nestedResource := d.Get("oidc").([]any)
if nestedResource == nil || len(nestedResource) == 0 {
if len(nestedResource) == 0 {
return cluster.OIDC{}, nil
}

Expand Down
4 changes: 2 additions & 2 deletions selectel/resource_selectel_mks_cluster_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func resourceMKSClusterV1() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Default: "",
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
DiffSuppressFunc: func(_, old, new string, _ *schema.ResourceData) bool {

Check failure on line 183 in selectel/resource_selectel_mks_cluster_v1.go

View workflow job for this annotation

GitHub Actions / golangci-lint

redefines-builtin-id: redefinition of the built-in function new (revive)
// Ignore diff on default value from API.
return old == "sub" && new == ""
},
Expand All @@ -189,7 +189,7 @@ func resourceMKSClusterV1() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Default: "",
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
DiffSuppressFunc: func(_, old, new string, _ *schema.ResourceData) bool {

Check failure on line 192 in selectel/resource_selectel_mks_cluster_v1.go

View workflow job for this annotation

GitHub Actions / golangci-lint

redefines-builtin-id: redefinition of the built-in function new (revive)
// Ignore diff on default value from API.
return old == "groups" && new == ""
},
Expand Down

0 comments on commit f44fe05

Please sign in to comment.