Remove unnecessary pathspec check