mirror of
https://github.com/matrix-construct/construct
synced 2025-03-14 05:20:17 +01:00
ircd: Simplify switch; fix missing runlevel case.
This commit is contained in:
parent
6f508f92a4
commit
2b3066a2a4
1 changed files with 3 additions and 9 deletions
12
ircd/ircd.cc
12
ircd/ircd.cc
|
@ -243,18 +243,12 @@ noexcept
|
|||
|
||||
switch(run::level)
|
||||
{
|
||||
case run::level::HALT:
|
||||
case run::level::READY:
|
||||
case run::level::FAULT:
|
||||
return;
|
||||
|
||||
case run::level::START:
|
||||
case run::level::QUIT:
|
||||
return;
|
||||
|
||||
case run::level::LOAD:
|
||||
case run::level::RUN:
|
||||
break;
|
||||
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
log::notice
|
||||
|
|
Loading…
Add table
Reference in a new issue