lib: remove mostly useless condition