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

(SCC-S1023) Omit redundant control flow #6

Open
thebluefowl opened this issue Aug 21, 2020 · 0 comments
Open

(SCC-S1023) Omit redundant control flow #6

thebluefowl opened this issue Aug 21, 2020 · 0 comments

Comments

@thebluefowl
Copy link
Owner

Description

Omit unnecessary (or) redundant control flows. - Functions that have no return value do not need a return statement as the final statement of the function. Both the examples below act the same. Bad pattern: go func foo() { fmt.Println("foo") return } Good pattern: ```go func foo() { fmt.Println("foo") …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/devpyp/gologger/issue/SCC-S1023/occurrences/

thebluefowl pushed a commit that referenced this issue Sep 18, 2020
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

No branches or pull requests

1 participant