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

(CRT-A0010) Function call can be replaced with helper function #3

Open
ii64 opened this issue Mar 9, 2021 · 0 comments
Open

(CRT-A0010) Function call can be replaced with helper function #3

ii64 opened this issue Mar 9, 2021 · 0 comments
Labels

Comments

@ii64
Copy link
Owner

ii64 commented Mar 9, 2021

Description

Certain functions, for a particular set of arguments, have shorthands that can be used instead. For example, go wg.Add(1) // some code wg.Add(-1) can be replaced with go wg.Add(1) // some code wg.Done() Similarly, go strings.SplitN(str, splitChar, -1) can be replaced with go strings.Split(str, splitChar) ```go …

Occurrences

There are 5 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/ii64/tanem/issue/CRT-A0010/occurrences/

@ii64 ii64 added the devnote label Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant