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:
JoaoAJMatos committed 2022-12-09 16:14:27 +00:00
1 parent 7fd3b9491b
commit 8f5c560e11
1 file changed
+3 -2
+3 -2
View File
@@ -198,9 +198,10 @@ std::string RequestMethodString(HTTPRequest::RequestMethod m)
return "HEAD";
case HTTPRequest::PUT:
return "PUT";
default:
case HTTPRequest::UNKNOWN:
return "unknown";
}
} // no default case, so the compiler can warn about missing cases
assert(false);
}
/** HTTP request callback */