Skip to content

Commit

Permalink
Do not try to guess body type when parameter template is present
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1Yo committed Jul 20, 2021
1 parent 8880d5f commit 2da9bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ pub fn get_config() -> (Config, usize) {

//check whether it is possible to automatically fix body type
//- at the end means "specified automatically"
let body_type = if args.value_of("body-type").is_none()
let body_type = if args.value_of("body-type").is_none() && args.value_of("parameter_template").unwrap_or("").is_empty()
&& (
(
!body.is_empty() && body.starts_with('{')
Expand Down

0 comments on commit 2da9bab

Please sign in to comment.