rm unnecessary `pass` flagged by pylint
Merge pull request #4795 from cvrebert/patch-2

rm unnecessary `pass` flagged by pylint