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

Shorten CommentType#UnmarshalText() #805

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Shorten CommentType#UnmarshalText() #805

merged 1 commit into from
Oct 7, 2024

Conversation

Al2Klimov
Copy link
Member

@Al2Klimov Al2Klimov commented Sep 6, 2024

by just calling CommentType#UnmarshalJSON(). The implementations behave identically. (Just like for AcknowledgementState, NotificationStates, NotificationTypes and StateType.)

@Al2Klimov Al2Klimov requested a review from oxzi September 6, 2024 10:33
@cla-bot cla-bot bot added the cla/signed label Sep 6, 2024
Copy link
Member

@oxzi oxzi left a comment

Choose a reason for hiding this comment

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

While the comment message is technically correct, it does not explain anything. Please just add at least one sentence stating that both implementations were almost identical. Otherwise, the first look at this diff leaves one puzzled.

pkg/icingadb/types/comment_type.go Show resolved Hide resolved
@lippserd
Copy link
Member

lippserd commented Oct 2, 2024

@Al2Klimov Please rebase.

by just calling CommentType#UnmarshalJSON().
The implementations behave identically. (Just like for AcknowledgementState,
NotificationStates, NotificationTypes and StateType.)
@lippserd lippserd merged commit 187288c into main Oct 7, 2024
33 checks passed
@lippserd lippserd deleted the CommentType branch October 7, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants