removed useless checks

Signed-off-by: Arnaud Richard <a.richard@webshell.io>