Skip to content

Fix for Useless assignment to local variable#88

Draft
bastelfreak wants to merge 1 commit into
mainfrom
finding-autofix-d0e456f7
Draft

Fix for Useless assignment to local variable#88
bastelfreak wants to merge 1 commit into
mainfrom
finding-autofix-d0e456f7

Conversation

@bastelfreak
Copy link
Copy Markdown
Contributor

To fix this without changing functionality, remove the redundant repo = double assignment in spec/lib/vanagon/project/dsl_spec.rb inside the describe '#release_from_git' test case. Keep the later repo = double("repo") assignment, since that is the object used in all expectations and stubs.

Specifically:

  • In the it 'sets the release based on commits since last tag' do block, delete the early repo = double line.
  • No method changes, import changes, or new definitions are required.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
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.

1 participant