Skip to content
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

api/task: simplify code a bit #3176

Merged
merged 1 commit into from
Apr 21, 2022
Merged

api/task: simplify code a bit #3176

merged 1 commit into from
Apr 21, 2022

Conversation

nodir-t
Copy link

@nodir-t nodir-t commented Apr 14, 2022

Summary

Simplify a code a bit.

Implementation details

Appending an element to a nil slice is equivalent to creating a new slice with a single element.
Take advantage of this behavior to simplify the code.

Testing

cd agent
go test -tags unit ./api/...

New tests cover the changes: no

Description for the changelog

api/task: simplify code a bit

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sparrc sparrc merged commit 51111de into aws:dev Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants