Skip to content

simplify order.Which so type is always seralized as string#6823

Merged
mccanne merged 2 commits intomainfrom
order-which
Apr 13, 2026
Merged

simplify order.Which so type is always seralized as string#6823
mccanne merged 2 commits intomainfrom
order-which

Conversation

@mccanne
Copy link
Copy Markdown
Collaborator

@mccanne mccanne commented Apr 12, 2026

No description provided.

Comment on lines +33 to +39
func (d Direction) Which() Which {
if d == Down {
return Desc
}
return Asc
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As I mentioned here, implicit conversion from Unknown to Asc feels like a potential rake, so maybe add a comment or a default parameter?

@mccanne mccanne merged commit be46cd0 into main Apr 13, 2026
2 checks passed
@mccanne mccanne deleted the order-which branch April 13, 2026 17:30
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.

3 participants