Skip to content

Commit

Permalink
fix: use correct count flag variable
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed Jun 3, 2024
1 parent 09ed5b0 commit 7e2784c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn query(command: Option<Query>, r#for: Option<String>, count: bool, get: Ke
.map(|port| get_key(port, options.get))
.collect::<Vec<_>>();

display_json_or_count(&result, count)?;
display_json_or_count(&result, options.count)?;
}
Some(Query::Has {
name,
Expand Down
2 changes: 1 addition & 1 deletion src/userstyles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn query(
.map(|userstyle| get_userstyle_key(userstyle, options.get))
.collect::<Vec<_>>();

display_json_or_count(&result, count)?;
display_json_or_count(&result, options.count)?;
}
Some(UserstylesQuery::Has {
name,
Expand Down

0 comments on commit 7e2784c

Please sign in to comment.