You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if err { return err } else { return nil } can be simplified to return err. For example, go if err := function(); err != nil { return err } else { return nil } can be re-written as: go return function()
Occurrences
There is 1 occurrence of this issue in the repository.
Description
if err { return err } else { return nil }
can be simplified toreturn err
. For example,go if err := function(); err != nil { return err } else { return nil }
can be re-written as:go return function()
Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/sampgo/cli/issue/RVV-B0005/occurrences/
The text was updated successfully, but these errors were encountered: