Refactor if else statement
Refactor if else statement

iclab/centinel-server,rpanah/centinel-server,rpanah/centinel-server,rpanah/centinel-server,ben-jones/centinel-server,lianke123321/centinel-server,lianke123321/centinel-server,iclab/centinel-server,iclab/centinel-server,ben-jones/centinel-server,gsathya/centinel-server,lianke123321/centinel-server,ben-jones/centinel-server