Skip to content

ineffectual assignment to err (ineffassign)

Checklist

  • I'm using the latest version of the extension (Run glab --version)
    • Extension version: build from source
  • Operating system and version: Debian testing
  • Gitlab.com or self-managed instance? gitlab.com/self-managed instance/both
  • GitLab version (if self-managed) GitLab version here (Use the version endpoint, like this: gitlab.my-company.com/api/v4/version)
  • I have performed glab auth status to check for authentication issues

Summary

  • run make check
  • Notice the following
golangci-lint run
commands/variable/delete/delete.go:52:5: ineffectual assignment to err (ineffassign)
				err = cmdutils.FlagError{Err: errors.New("no key provided")}
				^

What is the expected correct behavior?

Linting should be a-ok.

Relevant logs and/or screenshots

Possible fixes

I have a branch ready with a potential fix

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information