Created originally on Bitbucket by loganchien (Logan Chien)
Was already merged in Bitbucket before import, marked as merged by the import user
This commit removes the unused local variable standalone
, the redundant assertions, and the unreachable if statement.