Skip to content

Commit

Permalink
Remove param check, which disable ussge of stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanda Vacek committed Jul 17, 2024
1 parent 6b2c9b3 commit 9ca06fd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,6 @@ async fn make_call(url: &Url, opts: &Opts) -> Result {
};
Ok((path, method, param))
}
if opts.path.is_none() && opts.method.is_none() {
return Err("--path or --method parameter must be specified".into());
}
if opts.path.is_some() && opts.method.is_none() {
return Err("--method parameter missing".into());
}
Expand Down

0 comments on commit 9ca06fd

Please sign in to comment.