Skip to content

Commit

Permalink
Fix golangci-lint 'ST1017: don't use Yoda conditions (stylecheck)'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Sep 1, 2023
1 parent 042e2f4 commit ea058fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/glue/catalog_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ func flattenTableTargetTable(apiObject *glue.TableIdentifier) map[string]interfa

func flattenNonManagedParameters(table *glue.TableData) map[string]string {
allParameters := table.Parameters
if "ICEBERG" == aws.StringValue(allParameters["table_type"]) {
if aws.StringValue(allParameters["table_type"]) == "ICEBERG" {
delete(allParameters, "table_type")
delete(allParameters, "metadata_location")
}
Expand Down

0 comments on commit ea058fc

Please sign in to comment.