Skip to content

fix: remove duplicate error checking in UpdateAccountPermission#161

Merged
fbsobreira merged 1 commit intomasterfrom
fix/issue-160-duplicate-code
Jul 24, 2025
Merged

fix: remove duplicate error checking in UpdateAccountPermission#161
fbsobreira merged 1 commit intomasterfrom
fix/issue-160-duplicate-code

Conversation

@fbsobreira
Copy link
Owner

Remove redundant error checking block in pkg/client/account.go that was duplicated at lines 452-454.

Fixes #160

Description

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Refactoring (no functional changes, no API changes)
  • Performance improvement

Ticket

TRON-160

How Has This Been Tested?

No need, just duplicated code.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Remove redundant error checking block in pkg/client/account.go
that was duplicated at lines 452-454.

Fixes #160
@fbsobreira fbsobreira merged commit 5422839 into master Jul 24, 2025
3 checks passed
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.

[Question] Duplicate code issue in pkg/client/account file

1 participant