avoid unnecessary checks
Signed-off-by:jonathanlermitage <jonathan.lermitage@gmail.com>