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(sql): Updating acording to linters to reduce nesting #118

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

Jacobbrewer1
Copy link
Owner

Describe your changes

This pull request includes a small but significant change to the NewDiffSQLPatch function in the sql.go file. The change corrects the logic for comparing fields in the old and newT structures.

  • sql.go: Modified the condition to continue the loop when fields in old and newT are not deeply equal, ensuring that only identical fields are set to zero or nil and added to the ignored fields in the patch.

@Jacobbrewer1 Jacobbrewer1 enabled auto-merge (squash) February 12, 2025 13:41
@Jacobbrewer1 Jacobbrewer1 merged commit 1b4bcb9 into main Feb 12, 2025
6 checks passed
@Jacobbrewer1 Jacobbrewer1 deleted the chore/linting branch February 12, 2025 13:42
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