They'd get caught by an exception anyway.
public:
virtual void exec(AuthSrv& server, isc::data::ConstElementPtr args) {
// Is the pid argument provided?
- if (args && args->getType() == isc::data::Element::map &&
- args->contains("pid")) {
+ if (args && args->contains("pid")) {
// If it is, we check it is the same as our PID
// This might throw in case the type is not an int, but that's
answer = createAnswer(0, args);
} else if (command == "shutdown") {
// Is the pid argument provided?
- if (args && args->getType() == isc::data::Element::map &&
- args->contains("pid")) {
+ if (args && args->contains("pid")) {
// If it is, we check it is the same as our PID
const int pid(args->get("pid")->intValue());
const pid_t my_pid(getpid());