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

add active subscription to context #69

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

matoszz
Copy link
Contributor

@matoszz matoszz commented Nov 14, 2024

adds bool field to check if user has an active subscription within the context

@matoszz matoszz enabled auto-merge (squash) November 14, 2024 20:03
@github-actions github-actions bot added the enhancement New feature or request label Nov 14, 2024
Comment on lines +180 to +186
if tc.expect == validsubscription {
assert.Equal(t, validsubscription, got)
}

if tc.expect == invalidsubscription {
assert.Equal(t, invalidsubscription, got)
}
Copy link
Member

Choose a reason for hiding this comment

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

you should be able to simplify this to

Suggested change
if tc.expect == validsubscription {
assert.Equal(t, validsubscription, got)
}
if tc.expect == invalidsubscription {
assert.Equal(t, invalidsubscription, got)
}
assert.Equal(t, tc.expect, got)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants