Skip to content

Commit

Permalink
Fix semgrep 'ci.helper-schema-ResourceData-GetOk-with-extraneous-cond…
Browse files Browse the repository at this point in the history
…itional'.
  • Loading branch information
ewbankkit committed Feb 12, 2024
1 parent 7d238c1 commit 94369e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/ecs/task_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ func resourceTaskDefinitionRead(ctx context.Context, d *schema.ResourceData, met
conn := meta.(*conns.AWSClient).ECSConn(ctx)

trackedTaskDefinition := d.Get("arn").(string)
if v, ok := d.GetOk("track_latest"); ok && v.(bool) {
if _, ok := d.GetOk("track_latest"); ok {
trackedTaskDefinition = d.Get("family").(string)
}

Expand Down

0 comments on commit 94369e3

Please sign in to comment.