-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unable to rollout ECS first taskset #4614
Conversation
Signed-off-by: khanhtc1202 <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4614 +/- ##
==========================================
- Coverage 30.00% 29.98% -0.02%
==========================================
Files 221 221
Lines 25955 25955
==========================================
- Hits 7787 7783 -4
- Misses 17519 17523 +4
Partials 649 649
☔ View full report in Codecov by Sentry. |
var taskSets []*types.TaskSet | ||
if len(activeTaskSetArns) == 0 { | ||
return nil, fmt.Errorf("failed to get task sets of service %s: services empty", *service.ServiceName) | ||
return taskSets, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imo: just return []*types.TaskSet{}
and define taskSets
variable to minify its scope. 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it should be better to add comment for the reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okey, I don't have strong opinion on this 👍 Let's me adopt your suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: khanhtc1202 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐬
Signed-off-by: khanhtc1202 <[email protected]>
Signed-off-by: khanhtc1202 <[email protected]>
Signed-off-by: khanhtc1202 <[email protected]> Signed-off-by: moko-poi <[email protected]>
Signed-off-by: khanhtc1202 <[email protected]>
What this PR does / why we need it:
Which issue(s) this PR fixes:
Follow PR #4600
Does this PR introduce a user-facing change?: