Skip to content

Commit

Permalink
Remove the unnecessary case and add nolint
Browse files Browse the repository at this point in the history
Signed-off-by: Sergen Yalçın <[email protected]>
(cherry picked from commit 956c7d4)
  • Loading branch information
sergenyalcin authored and github-actions[bot] committed Mar 6, 2024
1 parent 3342cad commit c305e4e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/controller/external_tfpluginsdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (c *TerraformPluginSDKConnector) applyHCLParserToParam(sc *schema.Schema, p
if param == nil {
return param
}
switch sc.Type {
switch sc.Type { //nolint:exhaustive
case schema.TypeMap:
if sc.Elem == nil {
return param
Expand Down Expand Up @@ -217,8 +217,6 @@ func (c *TerraformPluginSDKConnector) applyHCLParserToParam(sc *schema.Schema, p
}
}
return param
case schema.TypeBool, schema.TypeInt, schema.TypeFloat, schema.TypeInvalid:
return param
default:
return param
}
Expand Down

0 comments on commit c305e4e

Please sign in to comment.