mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 18:51:12 +00:00
rest: replace rf_names[0].rf by RESTResponseFormat::UNDEF for code clarity
This commit is contained in:
parent
e3f416dbf7
commit
6d19815cd4
@ -144,7 +144,7 @@ RESTResponseFormat ParseDataFormat(std::string& param, const std::string& strReq
|
||||
|
||||
// No format string is found
|
||||
if (pos_format == std::string::npos) {
|
||||
return rf_names[0].rf;
|
||||
return RESTResponseFormat::UNDEF;
|
||||
}
|
||||
|
||||
// Match format string to available formats
|
||||
@ -157,7 +157,7 @@ RESTResponseFormat ParseDataFormat(std::string& param, const std::string& strReq
|
||||
}
|
||||
|
||||
// If no suffix is found, return RESTResponseFormat::UNDEF and original string without query string
|
||||
return rf_names[0].rf;
|
||||
return RESTResponseFormat::UNDEF;
|
||||
}
|
||||
|
||||
static std::string AvailableDataFormatsString()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user