Skip to content

Handle unused error from RowsAffected in RecordUpdaterSetStatus#109

Open
Mab879 wants to merge 1 commit into
ComplianceAsCode:mainfrom
Mab879:codeql_clean_up
Open

Handle unused error from RowsAffected in RecordUpdaterSetStatus#109
Mab879 wants to merge 1 commit into
ComplianceAsCode:mainfrom
Mab879:codeql_clean_up

Conversation

@Mab879

@Mab879 Mab879 commented Jun 4, 2026

Copy link
Copy Markdown
Member

The error returned by tag.RowsAffected() was silently ignored. Log it as a warning when it occurs, since the transaction has already been committed and the operation itself succeeded.

While this error will most likely not happen we should handle it just in case.

Claude Opus 4.6 was used in part of creating this issue.

Fixes finding from CodeQL quality.

The error returned by tag.RowsAffected() was silently ignored. Log it
as a warning when it occurs, since the transaction has already been
committed and the operation itself succeeded.

While this error will most likely not happen we should handle it just
in case.

Claude Opus 4.6 was used in part of creating this issue.

Fixes finding from CodeQL quality.
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