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

Fixes #288 #291

Merged
merged 4 commits into from
Sep 23, 2021
Merged

Fixes #288 #291

merged 4 commits into from
Sep 23, 2021

Conversation

soutenu
Copy link
Contributor

@soutenu soutenu commented Sep 2, 2021

No description provided.

Comment on lines 114 to 115
if let Some(display_style) = opts.display_style {
if let opts::DisplayStyle::Json = display_style {
Copy link
Owner

Choose a reason for hiding this comment

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

Just check if let Some(opts::DisplayStyle::Json) = opts.display_style, rather than two if-checks with duplicated elses.

@Kampfkarren
Copy link
Owner

Sorry for letting this sit so long, been busy.

@Kampfkarren Kampfkarren linked an issue Sep 23, 2021 that may be closed by this pull request
@Kampfkarren Kampfkarren merged commit e182696 into Kampfkarren:main Sep 23, 2021
@soutenu soutenu deleted the fix-288 branch September 26, 2021 16:00
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.

-q option says --display-style is specified when it isn't
2 participants