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

Make else branch optional #104

Merged
merged 2 commits into from
Aug 22, 2023
Merged

Make else branch optional #104

merged 2 commits into from
Aug 22, 2023

Conversation

01mf02
Copy link
Owner

@01mf02 01mf02 commented Aug 7, 2023

Quoth the jq manual:

if A then B end is the same as if A then B else . end. That is, the else branch is optional, and if absent is the same as .. This also applies to elif with absent ending else branch.

@01mf02 01mf02 merged commit d098047 into main Aug 22, 2023
@01mf02 01mf02 deleted the optional-else branch August 22, 2023 11:38
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