fix code state
simplify FURB101 suggested
