Skip to content

Commit

Permalink
fix(cli): fix validation when providing property filter as json (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-prosser authored Oct 31, 2024
1 parent 5f5efae commit 820e7c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Unreleased
- update `reinfer.io` urls to `reinfer.dev`
- fix validation when providing property filter as json

# v0.34.0
- Round trip `field_id`
Expand Down
4 changes: 1 addition & 3 deletions cli/src/commands/get/comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,7 @@ pub fn get_many(client: &Client, args: &GetManyCommentsArgs) -> Result<()> {
bail!("The `reviewed_only` and `property_filter` options are mutually exclusive.")
}

if (user_property_filter.is_some() || *interative_property_filter)
&& user_property_filter.is_some()
{
if user_property_filter.is_some() && *interative_property_filter {
bail!("The `interative_property_filter` and `property_filter` options are mutually exclusive.")
}

Expand Down

0 comments on commit 820e7c9

Please sign in to comment.