mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
refactor: Refactored RequestMethodString function to follow developer notes
Removed the default case in the switch statement in order to comply with the Developer Notes
This commit is contained in:
parent
7fd3b9491b
commit
8f5c560e11
1 changed files with 3 additions and 2 deletions
|
@ -198,9 +198,10 @@ std::string RequestMethodString(HTTPRequest::RequestMethod m)
|
||||||
return "HEAD";
|
return "HEAD";
|
||||||
case HTTPRequest::PUT:
|
case HTTPRequest::PUT:
|
||||||
return "PUT";
|
return "PUT";
|
||||||
default:
|
case HTTPRequest::UNKNOWN:
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
} // no default case, so the compiler can warn about missing cases
|
||||||
|
assert(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** HTTP request callback */
|
/** HTTP request callback */
|
||||||
|
|
Loading…
Add table
Reference in a new issue