Skip to content

Commit

Permalink
fix err handling
Browse files Browse the repository at this point in the history
  • Loading branch information
t4kamura committed Jun 29, 2024
1 parent 28aee0d commit 2b01c1a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/aws/ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func (e *ECS) ListClusterNames(ctx context.Context) ([]string, error) {
return nil, err
}
names, err := extractNameFromARNs(resp.ClusterArns)
if err != nil {
return nil, err
}

return names, nil
}
Expand All @@ -50,6 +53,9 @@ func (e *ECS) ListServiceNames(ctx context.Context, cluster string) ([]string, e
return nil, err
}
names, err := extractNameFromARNs(resp.ServiceArns)
if err != nil {
return nil, err
}

return names, nil
}
Expand All @@ -65,6 +71,9 @@ func (e *ECS) ListTaskNames(ctx context.Context, cluster string, service string)
return nil, err
}
names, err := extractNameFromARNs(resp.TaskArns)
if err != nil {
return nil, err
}

return names, nil
}
Expand Down

0 comments on commit 2b01c1a

Please sign in to comment.