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

enable errcheck for the project and fix the violations discovered #65

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

patjakdev
Copy link
Collaborator

Issue #, if available: None

Description of changes: See title

Signed-off-by: Patrick Jakubowski <patrick.jakubowski@strongdm.com>
}

func binaryToJSON(dest **binaryJSON, src ast.BinaryNode) {
n := ast.BinaryNode(src)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My editor pointed out that this cast was unnecessary

@patjakdev patjakdev marked this pull request as ready for review November 12, 2024 23:43
@patjakdev patjakdev requested review from philhassey and apg November 12, 2024 23:43
@@ -1212,7 +1212,7 @@ func TestPartialBasic(t *testing.T) {
func TestPartialPanic(t *testing.T) {
t.Parallel()
testutil.Panic(t, func() {
partial(Env{}, nil)
_, _ = partial(Env{}, nil)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm fine either way, but I think there's a //lint:noerrcheck or something to that effect that is an alternative, here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm kind of ambivalent as well, so I guess I'll go with the more terse option, especially since this is a test.

@patjakdev patjakdev merged commit 88610b0 into cedar-policy:main Nov 13, 2024
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.

2 participants