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 <yalcinsergen97@gmail.com>
  • Loading branch information
sergenyalcin committed Mar 5, 2024
1 parent 93af08a commit 956c7d4
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 956c7d4

Please sign in to comment.