[Linter] fix #check_if_spec_is_empty