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

chore: errcount shorthand #58

Merged
merged 1 commit into from
Jan 24, 2025
Merged

chore: errcount shorthand #58

merged 1 commit into from
Jan 24, 2025

Conversation

tenthirtyam
Copy link
Contributor

In order to have a good experience with our community, we recommend that you read the contributing guidelines for making a pull request.

Summary of Pull Request

Use Shorthand Increment Operator: Replace errcount += 1 with errcount++, as it is a more concise and conventional way to increment an integer by 1 in Go. This minor refactoring improves code readability and aligns with common Go practices.

  • resource_vmc.go: Changed errcount += 1 to errcount++ in the resourceVmcCreate function to simplify the code.
  • resource_vmc.go: Changed errcount += 1 to errcount++ in the resourceVmcDelete function to simplify the code.

Type of Pull Request

  • This is a bug fix.
  • This is an enhancement or feature.
  • This is a code style/formatting update.
  • This is a documentation update.
  • This is a refactoring update.
  • This is a chore update
  • This is something else.
    Please describe:

Related to Existing Issues

Ref: #42

Test and Documentation Coverage

For bug fixes or features:

  • Tests have been completed.
  • Documentation has been added/updated.

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

@tenthirtyam tenthirtyam added the chore Chore label Jan 23, 2025
@tenthirtyam tenthirtyam added this to the .next milestone Jan 23, 2025
@tenthirtyam tenthirtyam self-assigned this Jan 23, 2025
@github-actions github-actions bot added the needs-review Needs Review label Jan 23, 2025
@tenthirtyam tenthirtyam added the technical-debt Technical Debt label Jan 23, 2025
@tenthirtyam tenthirtyam linked an issue Jan 23, 2025 that may be closed by this pull request
@tenthirtyam tenthirtyam requested a review from andybeltz January 23, 2025 22:23
Copy link

@andybeltz andybeltz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Use Shorthand Increment Operator: Replace `errcount += 1` with `errcount++`, as it is a more concise and conventional way to increment an integer by 1 in Go. This minor refactoring improves code readability and aligns with common Go practices.

Ref: #42

Signed-off-by: Ryan Johnson <[email protected]>
@tenthirtyam tenthirtyam force-pushed the chore/errcount-shorthand branch from f2f5ae2 to 3502d20 Compare January 24, 2025 03:07
@tenthirtyam tenthirtyam merged commit b00f642 into main Jan 24, 2025
3 checks passed
@tenthirtyam tenthirtyam deleted the chore/errcount-shorthand branch January 24, 2025 03:08
@tenthirtyam tenthirtyam added needs-review Needs Review and removed needs-review Needs Review labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chore technical-debt Technical Debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Address linting issues
2 participants